03 2016 档案

摘要:#import "ShowViewController.h" #import "MusicCollectionViewCell.h" #import "ViewController.h" #import <MediaPlayer/MediaPlayer.h> #import <AVFoundatio 阅读全文
posted @ 2016-03-04 17:10 small-elephant_A-Do 阅读(147) 评论(0) 推荐(0)
摘要:一,核心动画 -(UIColor *)createColor{ CGFloat r = arc4random_uniform(255)/255.0; CGFloat g = arc4random_uniform(255)/255.0; CGFloat b = arc4random_uniform(2 阅读全文
posted @ 2016-03-04 11:42 small-elephant_A-Do 阅读(224) 评论(0) 推荐(0)
摘要:使用显式动画,如果设置layer 的bounds和frame效果是不一样的 如果设置 self.layer.bounds = CGRectMake(0, 0, width, width); 效果如图 如果设置 self.layer.frame = CGRectMake(0, 0, width, wi 阅读全文
posted @ 2016-03-04 10:19 small-elephant_A-Do 阅读(175) 评论(0) 推荐(0)
摘要: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 阅读(145) 评论(0) 推荐(0)
摘要:两个重点 一个设置一个 CGMutablePathRef 来存放不断变动的线条 另一个 @property (nonatomic,strong)NSMutableArray *paths; 用来存放已经画好的线条 代码如下 #import "DSNView.h" #import "DSNPath.h 阅读全文
posted @ 2016-03-03 14:57 small-elephant_A-Do 阅读(239) 评论(0) 推荐(0)
摘要:一直对于collectionview处于半懂不懂的状态 所以现在自己做了一个,实现效果如下 #import "ViewController.h" #import "CollectionViewCell.h" static NSString *identifierCell = @"cellID"; @ 阅读全文
posted @ 2016-03-03 09:55 small-elephant_A-Do 阅读(219) 评论(0) 推荐(0)
摘要:试了三种方法 列在下面 新建cell 文件 包括.h .m .xib 然后在xib文件加上一个标签,目的是复用这个cell 一,在要调用的listcell中初始化一个类方法 //+(ListCell *)cellwithTableView:(UITableView *)tablaeView; //+ 阅读全文
posted @ 2016-03-03 07:34 small-elephant_A-Do 阅读(326) 评论(0) 推荐(0)
摘要:首先上效果图 代码如下: #import "DSNMusicTableViewController.h" #import "DSNMusicModel.h" #import "DSNPlayingViewController.h" @interface DSNMusicTableViewContro 阅读全文
posted @ 2016-03-01 15:58 small-elephant_A-Do 阅读(222) 评论(0) 推荐(0)