摘要:
设置一张透明图片:nav_bargound.png//导航栏背景[self.navigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"nav_bargound.png"]forBarMetrics:UIBar... 阅读全文
摘要:
只刷新cell不刷新section,这问题还难住了一阵子需要用到:- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;- (void)dele... 阅读全文
摘要:
////ViewController.m//JSAndIOS交互////Createdbyappleon15/7/31.//Copyright(c)2015年tqh.Allrightsreserved.//#import"ViewController.h"#import"WebViewJavascr... 阅读全文
摘要:
ios下最简单的正则,RegexKitLite 1.去RegexKitLite下载类库,解压出来会有一个例子包及2个文件,其实用到的就这2个文件,添加到工程中。备用地址:http://www.cocoachina.com/bbs/job.php?action-download-... 阅读全文
摘要:
1、CAShapeLayer继承至CALayer,可以使用CALayer的所有属性值2、CAShapeLayer需要与贝塞尔曲线配合使用才有意义3、使用CAShapeLayer与贝塞尔曲线可以实现不在view的drawRect方法中画出一些想要的图形4、CAShapeLayer属于CoreAnima... 阅读全文
摘要:
self.view.backgroundColor=[UIColorblackColor];//获取图片self.imageContents=[UIImageimageNamed:@"原始图片"];self.maskContents=[UIImageimageNamed:@"maskLayerCon... 阅读全文
摘要:
扩展: dispatch_block_t :无参数block,使用起来很简单下载链接:http://pan.baidu.com/s/1bndN6Yb//串行队列-(void)test1{WJGCDQueue*queue=[[WJGCDQueuealloc]initSerial];[queueexec... 阅读全文
摘要:
NSMutableArray *components = [messageStr componentsSeparatedByString:@"*"] ;反过来为NSStrig *str = [components componentsJoinedByString:@"*"]; 阅读全文
摘要:
-(void)test1{//创建一个并发队列//并发队列+异步任务:创建多个线程,并发执行dispatch_queue_tqueue=dispatch_queue_create("tqh.com",DISPATCH_QUEUE_CONCURRENT);//一步创建一个任务,任务不会立即执行disp... 阅读全文
摘要:
#import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)CALayer*imageLayer;@end@implementationViewController-(void)viewDidLoad{[... 阅读全文