- 博客(7)
- 收藏
- 关注
原创 iOS应用跳到App Store
/跳转到应用页面NSString *str = [NSString stringWithFormat:@"http://itunes.apple.com/us/app/id%d",appid]; [[UIApplication sharedApplication]openURL:[NSURL urlWithString:str]];//跳转到评价页面NSString *str = [NSString
2015-10-28 13:54:25 226
原创 更新到10.11后 cocoapods 重装问题
更新到10.11后 cocoapods 需要重新安装,但是使用原来的淘宝源(http://ruby.taobao.org/)会报错ERROR: Could not find a valid gem ‘cocospods’ (>= 0), here is why: Unable to download data from http://ruby.taobao.org/ - bad resp
2015-10-28 13:49:56 278
原创 去掉UItableview headerview黏性(sticky)
(void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 40; if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) { scrollView.contentInset
2015-10-10 18:01:37 189
原创 浮点数等值比较
浮点数等值比较使用下式:includeincludefabs(a - b) < FLT_EPSILON三个EPSILON: FLT_EPSILON //双精度 DBL_EPSILON //单精度 LDBL_EPSILON
2015-10-10 09:42:42 741
原创 数组不能有nil的对象,字典不能插入nil的值
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]’ * First th
2015-10-06 10:55:38 592
原创 画虚线边框
CAShapeLayer *border = [CAShapeLayer layer];border.strokeColor = SLColorLine.CGColor;border.fillColor = nil;border.path = [UIBezierPath bezierPathWithRect:self.bounds].CGPath; //border.path = [UIBezie
2015-10-04 22:55:23 406
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人