自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 当前界面隐藏navigationbar后动画出现白条

// 调用以下方法即可self.navigationController setNavigationBarHidden:YES animated:YES];

2015-12-29 16:06:24 2237

原创 UIButton左文字右图片

// 在setTitle之后加入以下这句, 否则iOS8中会重叠 [leftButton layoutIfNeeded]; leftButton.imageEdgeInsets = UIEdgeInsetsMake(14, leftButton.titleLabel.bounds.size.width, 14, -leftButton.titleLabel.bounds

2015-12-04 14:09:56 412

原创 iOS9不能正常使用HTTP的解决方法

在工程info.plist文件下添加App Transport Security Settings,类型为Dictionary 然后在App Transport Security Settings下面添加Allow Arbitrary Loads, boolean为YES

2015-11-27 09:40:33 556

原创 iOS UILabel指定文字变颜色

示例: 共有100个商品, 数字显示红色 UILabel *testLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 40)]; [self.view addSubview:testLabel]; // 商品个数假设100 NSString *countLength = [NSString stringWithFor

2015-11-05 15:43:18 873

原创 iOS8使用CoreLocation获取当前地理位置

1.导入CoreLocation.framework框架 #import 2.定义CLLocationManager类型的属性 @property (strong, nonatomic) CLLocationManager *locationM; 3.初始化CLLocationManager, 开始定位 if ([CLLocationManager locationServ

2015-08-20 21:09:39 456

转载 xib中设置view的圆角

要在xib中添加一个圆角的view, 网上查了一下, 有的写的是layer.corner.radius, 正确的应该是layer.cornerRadius, 类型是number

2015-07-23 10:17:50 311

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除