自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 masonry 小知识

multipliedBy 乘法 dividedBy 除法

2015-10-11 23:46:03 296

原创 去掉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关注的人

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