会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
幻想无极
github: https://github.com/WuJiForFantasy oschina:https://git.oschina.net/
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
22
下一页
2015年8月7日
iOS导航栏-导航栏透明
摘要: 设置一张透明图片:nav_bargound.png//导航栏背景[self.navigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"nav_bargound.png"]forBarMetrics:UIBar...
阅读全文
posted @ 2015-08-07 10:29 幻想无极
阅读(550)
评论(0)
推荐(0)
2015年8月6日
UITableView局部刷新
摘要: 只刷新cell不刷新section,这问题还难住了一阵子需要用到:- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;- (void)dele...
阅读全文
posted @ 2015-08-06 18:51 幻想无极
阅读(379)
评论(0)
推荐(0)
2015年7月31日
iOS-JS交互 (WebViewJavascriptBridge)
摘要: ////ViewController.m//JSAndIOS交互////Createdbyappleon15/7/31.//Copyright(c)2015年tqh.Allrightsreserved.//#import"ViewController.h"#import"WebViewJavascr...
阅读全文
posted @ 2015-07-31 18:03 幻想无极
阅读(750)
评论(0)
推荐(1)
2015年7月29日
ios下最简单的正则,RegexKitLite
摘要: ios下最简单的正则,RegexKitLite 1.去RegexKitLite下载类库,解压出来会有一个例子包及2个文件,其实用到的就这2个文件,添加到工程中。备用地址:http://www.cocoachina.com/bbs/job.php?action-download-...
阅读全文
posted @ 2015-07-29 17:26 幻想无极
阅读(273)
评论(0)
推荐(0)
2015年7月23日
iOS-CAShapelayer
摘要: 1、CAShapeLayer继承至CALayer,可以使用CALayer的所有属性值2、CAShapeLayer需要与贝塞尔曲线配合使用才有意义3、使用CAShapeLayer与贝塞尔曲线可以实现不在view的drawRect方法中画出一些想要的图形4、CAShapeLayer属于CoreAnima...
阅读全文
posted @ 2015-07-23 12:11 幻想无极
阅读(197)
评论(0)
推荐(0)
iOS-CALayer遮罩效果
摘要: self.view.backgroundColor=[UIColorblackColor];//获取图片self.imageContents=[UIImageimageNamed:@"原始图片"];self.maskContents=[UIImageimageNamed:@"maskLayerCon...
阅读全文
posted @ 2015-07-23 10:10 幻想无极
阅读(1899)
评论(0)
推荐(0)
GCD的简单封装
摘要: 扩展: 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)
iOS数组和字符串的转化
摘要: NSMutableArray *components = [messageStr componentsSeparatedByString:@"*"] ;反过来为NSStrig *str = [components componentsJoinedByString:@"*"];
阅读全文
posted @ 2015-07-23 00:39 幻想无极
阅读(953)
评论(0)
推荐(0)
GCD使用小结
摘要: -(void)test1{//创建一个并发队列//并发队列+异步任务:创建多个线程,并发执行dispatch_queue_tqueue=dispatch_queue_create("tqh.com",DISPATCH_QUEUE_CONCURRENT);//一步创建一个任务,任务不会立即执行disp...
阅读全文
posted @ 2015-07-23 00:30 幻想无极
阅读(241)
评论(0)
推荐(0)
2015年7月21日
iOS-CALayer图片淡入淡出动画
摘要: #import"ViewController.h"@interfaceViewController()@property(nonatomic,strong)CALayer*imageLayer;@end@implementationViewController-(void)viewDidLoad{[...
阅读全文
posted @ 2015-07-21 23:52 幻想无极
阅读(2744)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
22
下一页
公告