上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: 设置一张透明图片:nav_bargound.png//导航栏背景[self.navigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"nav_bargound.png"]forBarMetrics:UIBar... 阅读全文
posted @ 2015-08-07 10:29 幻想无极 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 只刷新cell不刷新section,这问题还难住了一阵子需要用到:- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;- (void)dele... 阅读全文
posted @ 2015-08-06 18:51 幻想无极 阅读(369) 评论(0) 推荐(0) 编辑
摘要: ////ViewController.m//JSAndIOS交互////Createdbyappleon15/7/31.//Copyright(c)2015年tqh.Allrightsreserved.//#import"ViewController.h"#import"WebViewJavascr... 阅读全文
posted @ 2015-07-31 18:03 幻想无极 阅读(744) 评论(0) 推荐(1) 编辑
摘要: ios下最简单的正则,RegexKitLite 1.去RegexKitLite下载类库,解压出来会有一个例子包及2个文件,其实用到的就这2个文件,添加到工程中。备用地址:http://www.cocoachina.com/bbs/job.php?action-download-... 阅读全文
posted @ 2015-07-29 17:26 幻想无极 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1、CAShapeLayer继承至CALayer,可以使用CALayer的所有属性值2、CAShapeLayer需要与贝塞尔曲线配合使用才有意义3、使用CAShapeLayer与贝塞尔曲线可以实现不在view的drawRect方法中画出一些想要的图形4、CAShapeLayer属于CoreAnima... 阅读全文
posted @ 2015-07-23 12:11 幻想无极 阅读(191) 评论(0) 推荐(0) 编辑
摘要: self.view.backgroundColor=[UIColorblackColor];//获取图片self.imageContents=[UIImageimageNamed:@"原始图片"];self.maskContents=[UIImageimageNamed:@"maskLayerCon... 阅读全文
posted @ 2015-07-23 10:10 幻想无极 阅读(1889) 评论(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 幻想无极 阅读(260) 评论(0) 推荐(0) 编辑
摘要: NSMutableArray *components = [messageStr componentsSeparatedByString:@"*"] ;反过来为NSStrig *str = [components componentsJoinedByString:@"*"]; 阅读全文
posted @ 2015-07-23 00:39 幻想无极 阅读(948) 评论(0) 推荐(0) 编辑
摘要: -(void)test1{//创建一个并发队列//并发队列+异步任务:创建多个线程,并发执行dispatch_queue_tqueue=dispatch_queue_create("tqh.com",DISPATCH_QUEUE_CONCURRENT);//一步创建一个任务,任务不会立即执行disp... 阅读全文
posted @ 2015-07-23 00:30 幻想无极 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)CALayer*imageLayer;@end@implementationViewController-(void)viewDidLoad{[... 阅读全文
posted @ 2015-07-21 23:52 幻想无极 阅读(2734) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页