会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
火星的蝈蝈
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2015年8月11日
缓存html
摘要: 就是写进文件,然后判断是否存在来发起请求或者加载本地文件代码片段NSString*htmlResponseStr=[NSStringstringWithContentsOfURL:[NSURLURLWithString:urlStr]encoding:NSUTF8StringEncodingerro...
阅读全文
posted @ 2015-08-11 16:30 火星的蝈蝈
阅读(181)
评论(0)
推荐(0)
编辑
2015年8月10日
摇一摇功能实现
摘要: #pragma mark yaoyiyao - (BOOL)canBecomeFirstResponder { return YES;// default is NO } - (void)motionBegan:(UIEventSubtype)motion withEvent:(U...
阅读全文
posted @ 2015-08-10 09:52 火星的蝈蝈
阅读(184)
评论(0)
推荐(0)
编辑
2015年8月7日
二维码扫面
摘要: http://www.2cto.com/kf/201406/306945.htmlhttp://www.jianshu.com/p/6b7d54b3f88b
阅读全文
posted @ 2015-08-07 15:14 火星的蝈蝈
阅读(111)
评论(0)
推荐(0)
编辑
2015年7月27日
UITabBarController的代理方法
摘要: -(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController { if (viewController =...
阅读全文
posted @ 2015-07-27 10:44 火星的蝈蝈
阅读(383)
评论(0)
推荐(0)
编辑
2015年7月26日
多线程NSOperation
摘要: //多个线程并发执行 一般的时候会将多个线程放到队列中 由队列管理线程工作状态{ UIProgressView * progressView; NSOperationQueue * queue;}- (BOOL)application:(UIApplication *)applicati...
阅读全文
posted @ 2015-07-26 17:14 火星的蝈蝈
阅读(133)
评论(0)
推荐(0)
编辑
多线程NSThread
摘要: 一些基础知识 //线程就是进程中并发执行的一些代码片段 /* 网络传输方式 同步:所有任务放到一个线程中完成,只要当前任务没有完成 那么下一个任务就处于堵塞的状态 异步:多个任务放到多个线程中完成 即使当前任务没有完成 那么也不会影响到其他任务的执行 //数据传输方式 串行:一个线程中只有当前任务...
阅读全文
posted @ 2015-07-26 17:05 火星的蝈蝈
阅读(141)
评论(0)
推荐(0)
编辑
2015年7月25日
原生地图
摘要: 第一步 导入框架#import 第二步,如果用到定制大头针落下动画,和复用方法则需要代理@interface RootViewController ()第三步正文- (void)viewDidLoad { [super viewDidLoad]; _mapView = [[MKMapVi...
阅读全文
posted @ 2015-07-25 17:01 火星的蝈蝈
阅读(236)
评论(0)
推荐(0)
编辑
AFN下载附件封装
摘要: 可以参考http://blog.csdn.net/lgm252008/article/details/40860077可以使用另一个第三方库LCDownloadManager 下载助手 断点续传 多任务下载,弹幕模块地址http://down.51cto.com/data/2068450教程http...
阅读全文
posted @ 2015-07-25 10:10 火星的蝈蝈
阅读(211)
评论(0)
推荐(0)
编辑
2015年7月23日
推送————(本地通知)
摘要: /* 代理中方法有判断是否是通过点击通知进入的程序,这个可以用于qq中单击通知进入相应的界面 */ //创建通知 UILocalNotification * localNote = [[UILocalNotification alloc]init]; //设置属性 localNote.ale...
阅读全文
posted @ 2015-07-23 16:16 火星的蝈蝈
阅读(134)
评论(0)
推荐(0)
编辑
注册用户
摘要: if (!_accountTextField.text.length || !_passwordTextField.text.length) { submit.alpha = 0.4; submit.enabled = NO; }}
阅读全文
posted @ 2015-07-23 15:30 火星的蝈蝈
阅读(119)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页