摘要: CALayer *layer = [CALayer layer]; [layer setBackgroundColor:[UIColor redColor].CGColor]; layer.bounds = CGRectMake(0, 0, 100, 100); layer.anchorPoint 阅读全文
posted @ 2016-03-03 16:57 small-elephant_A-Do 阅读(153) 评论(0) 推荐(0)
摘要: 两个重点 一个设置一个 CGMutablePathRef 来存放不断变动的线条 另一个 @property (nonatomic,strong)NSMutableArray *paths; 用来存放已经画好的线条 代码如下 #import "DSNView.h" #import "DSNPath.h 阅读全文
posted @ 2016-03-03 14:57 small-elephant_A-Do 阅读(248) 评论(0) 推荐(0)
摘要: 一直对于collectionview处于半懂不懂的状态 所以现在自己做了一个,实现效果如下 #import "ViewController.h" #import "CollectionViewCell.h" static NSString *identifierCell = @"cellID"; @ 阅读全文
posted @ 2016-03-03 09:55 small-elephant_A-Do 阅读(229) 评论(0) 推荐(0)
摘要: 试了三种方法 列在下面 新建cell 文件 包括.h .m .xib 然后在xib文件加上一个标签,目的是复用这个cell 一,在要调用的listcell中初始化一个类方法 //+(ListCell *)cellwithTableView:(UITableView *)tablaeView; //+ 阅读全文
posted @ 2016-03-03 07:34 small-elephant_A-Do 阅读(333) 评论(0) 推荐(0)