03 2016 档案
摘要:#import "ShowViewController.h" #import "MusicCollectionViewCell.h" #import "ViewController.h" #import <MediaPlayer/MediaPlayer.h> #import <AVFoundatio
阅读全文
摘要:一,核心动画 -(UIColor *)createColor{ CGFloat r = arc4random_uniform(255)/255.0; CGFloat g = arc4random_uniform(255)/255.0; CGFloat b = arc4random_uniform(2
阅读全文
摘要:使用显式动画,如果设置layer 的bounds和frame效果是不一样的 如果设置 self.layer.bounds = CGRectMake(0, 0, width, width); 效果如图 如果设置 self.layer.frame = CGRectMake(0, 0, width, wi
阅读全文
摘要:CALayer *layer = [CALayer layer]; [layer setBackgroundColor:[UIColor redColor].CGColor]; layer.bounds = CGRectMake(0, 0, 100, 100); layer.anchorPoint
阅读全文
摘要:两个重点 一个设置一个 CGMutablePathRef 来存放不断变动的线条 另一个 @property (nonatomic,strong)NSMutableArray *paths; 用来存放已经画好的线条 代码如下 #import "DSNView.h" #import "DSNPath.h
阅读全文
摘要:一直对于collectionview处于半懂不懂的状态 所以现在自己做了一个,实现效果如下 #import "ViewController.h" #import "CollectionViewCell.h" static NSString *identifierCell = @"cellID"; @
阅读全文
摘要:试了三种方法 列在下面 新建cell 文件 包括.h .m .xib 然后在xib文件加上一个标签,目的是复用这个cell 一,在要调用的listcell中初始化一个类方法 //+(ListCell *)cellwithTableView:(UITableView *)tablaeView; //+
阅读全文
摘要:首先上效果图 代码如下: #import "DSNMusicTableViewController.h" #import "DSNMusicModel.h" #import "DSNPlayingViewController.h" @interface DSNMusicTableViewContro
阅读全文

浙公网安备 33010602011771号