摘要:
1、CAShapeLayer继承至CALayer,可以使用CALayer的所有属性值2、CAShapeLayer需要与贝塞尔曲线配合使用才有意义3、使用CAShapeLayer与贝塞尔曲线可以实现不在view的drawRect方法中画出一些想要的图形4、CAShapeLayer属于CoreAnima... 阅读全文
posted @ 2015-07-23 12:11
幻想无极
阅读(197)
评论(0)
推荐(0)
摘要:
self.view.backgroundColor=[UIColorblackColor];//获取图片self.imageContents=[UIImageimageNamed:@"原始图片"];self.maskContents=[UIImageimageNamed:@"maskLayerCon... 阅读全文
posted @ 2015-07-23 10:10
幻想无极
阅读(1899)
评论(0)
推荐(0)
摘要:
扩展: dispatch_block_t :无参数block,使用起来很简单下载链接:http://pan.baidu.com/s/1bndN6Yb//串行队列-(void)test1{WJGCDQueue*queue=[[WJGCDQueuealloc]initSerial];[queueexec... 阅读全文
posted @ 2015-07-23 01:52
幻想无极
阅读(264)
评论(0)
推荐(0)
摘要:
NSMutableArray *components = [messageStr componentsSeparatedByString:@"*"] ;反过来为NSStrig *str = [components componentsJoinedByString:@"*"]; 阅读全文
posted @ 2015-07-23 00:39
幻想无极
阅读(953)
评论(0)
推荐(0)
摘要:
-(void)test1{//创建一个并发队列//并发队列+异步任务:创建多个线程,并发执行dispatch_queue_tqueue=dispatch_queue_create("tqh.com",DISPATCH_QUEUE_CONCURRENT);//一步创建一个任务,任务不会立即执行disp... 阅读全文
posted @ 2015-07-23 00:30
幻想无极
阅读(241)
评论(0)
推荐(0)