- 博客(6)
- 问答 (3)
- 收藏
- 关注
原创 iOS 画一个圆
1.画一个实线空心圆 //画实线大圆 CAShapeLayer *solidLine1 = [CAShapeLayer layer]; CGMutablePathRef solidPath1 = CGPathCreateMutable(); solidLine1.lineWidth = 1
2016-12-24 17:07:32 618
原创 ios 获取n个月前或者n个月后的日期
NSCalendar *calendar = [NSCalendar currentCalendar];NSRange range = [calendar rangeOfUnit:NSDayCalendarUnit inUnit:NSMonthCalendarUnit forDate:[NSDate date]];NSUInteger numberOfDaysInMonth = range
2016-12-15 16:37:54 897
转载 iOS UITableViewCell滑动删除
首先,我们初始化一个界面,以列表的形式展示1234567891011#pragma mark - 初始化UI- (void)initUI{ self.view.backgroundColor = RGB(242, 242, 247);
2016-12-08 14:41:57 379
原创 单独设置UicollectionView的一个cell的宽度
1.想单独改变一个cell的宽度,与其他的cell宽度不同,并且保持间距相等,需要封装一个BaseCollectionViewFlowLayout类.h文件#import @protocol BaseCollectionViewFlowLayoutDelegate UICollectionViewDelegateFlowLayout>@e
2016-12-04 17:06:04 2799
转载 layoutAttributesForElementsInRect: Logging only once for UICollectionViewFlowLayout cache mismatched
转自:http://codecloud.net/14916.html最近使用UICollectionView自定义布局的时候报了个提示,看着特别烦提示:2016-07-08 16:26:38.346 YiTong[27847:733016] Logging only once for UICollectionViewFlowLayout cache mismatched frame20
2016-12-04 14:34:05 1217
转载 解决XCode8 Protocol not available, dumping backtrace问题
转自:http://www.w2bc.com/article/177485一 问题描述nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace: [x86_64] libnetcore-856.1.8
2016-12-04 14:18:39 1512
空空如也
UICollectionView排序方式
2016-04-09
iOS关于Flurry 内存泄露问题
2016-03-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人