- 博客(6)
- 收藏
- 关注
原创 当前界面隐藏navigationbar后动画出现白条
// 调用以下方法即可self.navigationController setNavigationBarHidden:YES animated:YES];
2015-12-29 16:06:24
2277
原创 UIButton左文字右图片
// 在setTitle之后加入以下这句, 否则iOS8中会重叠 [leftButton layoutIfNeeded]; leftButton.imageEdgeInsets = UIEdgeInsetsMake(14, leftButton.titleLabel.bounds.size.width, 14, -leftButton.titleLabel.bounds
2015-12-04 14:09:56
429
原创 iOS9不能正常使用HTTP的解决方法
在工程info.plist文件下添加App Transport Security Settings,类型为Dictionary然后在App Transport Security Settings下面添加Allow Arbitrary Loads, boolean为YES
2015-11-27 09:40:33
575
原创 iOS UILabel指定文字变颜色
示例: 共有100个商品, 数字显示红色UILabel *testLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 40)];[self.view addSubview:testLabel];// 商品个数假设100NSString *countLength = [NSString stringWithFor
2015-11-05 15:43:18
898
原创 iOS8使用CoreLocation获取当前地理位置
1.导入CoreLocation.framework框架#import 2.定义CLLocationManager类型的属性@property (strong, nonatomic) CLLocationManager *locationM;3.初始化CLLocationManager, 开始定位 if ([CLLocationManager locationServ
2015-08-20 21:09:39
482
转载 xib中设置view的圆角
要在xib中添加一个圆角的view, 网上查了一下, 有的写的是layer.corner.radius, 正确的应该是layer.cornerRadius, 类型是number
2015-07-23 10:17:50
345
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人