摘要:
就是写进文件,然后判断是否存在来发起请求或者加载本地文件代码片段NSString*htmlResponseStr=[NSStringstringWithContentsOfURL:[NSURLURLWithString:urlStr]encoding:NSUTF8StringEncodingerro...
阅读全文
posted @ 2015-08-11 16:30
火星的蝈蝈
阅读(182)
推荐(0)
摘要:
#pragma mark yaoyiyao - (BOOL)canBecomeFirstResponder { return YES;// default is NO } - (void)motionBegan:(UIEventSubtype)motion withEvent:(U...
阅读全文
posted @ 2015-08-10 09:52
火星的蝈蝈
阅读(194)
推荐(0)
摘要:
http://www.2cto.com/kf/201406/306945.htmlhttp://www.jianshu.com/p/6b7d54b3f88b
阅读全文
posted @ 2015-08-07 15:14
火星的蝈蝈
阅读(119)
推荐(0)
摘要:
-(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController { if (viewController =...
阅读全文
posted @ 2015-07-27 10:44
火星的蝈蝈
阅读(398)
推荐(0)
摘要:
//多个线程并发执行 一般的时候会将多个线程放到队列中 由队列管理线程工作状态{ UIProgressView * progressView; NSOperationQueue * queue;}- (BOOL)application:(UIApplication *)applicati...
阅读全文
posted @ 2015-07-26 17:14
火星的蝈蝈
阅读(138)
推荐(0)
摘要:
一些基础知识 //线程就是进程中并发执行的一些代码片段 /* 网络传输方式 同步:所有任务放到一个线程中完成,只要当前任务没有完成 那么下一个任务就处于堵塞的状态 异步:多个任务放到多个线程中完成 即使当前任务没有完成 那么也不会影响到其他任务的执行 //数据传输方式 串行:一个线程中只有当前任务...
阅读全文
posted @ 2015-07-26 17:05
火星的蝈蝈
阅读(153)
推荐(0)
摘要:
第一步 导入框架#import 第二步,如果用到定制大头针落下动画,和复用方法则需要代理@interface RootViewController ()第三步正文- (void)viewDidLoad { [super viewDidLoad]; _mapView = [[MKMapVi...
阅读全文
posted @ 2015-07-25 17:01
火星的蝈蝈
阅读(247)
推荐(0)
摘要:
可以参考http://blog.csdn.net/lgm252008/article/details/40860077可以使用另一个第三方库LCDownloadManager 下载助手 断点续传 多任务下载,弹幕模块地址http://down.51cto.com/data/2068450教程http...
阅读全文
posted @ 2015-07-25 10:10
火星的蝈蝈
阅读(217)
推荐(0)
摘要:
/* 代理中方法有判断是否是通过点击通知进入的程序,这个可以用于qq中单击通知进入相应的界面 */ //创建通知 UILocalNotification * localNote = [[UILocalNotification alloc]init]; //设置属性 localNote.ale...
阅读全文
posted @ 2015-07-23 16:16
火星的蝈蝈
阅读(138)
推荐(0)
摘要:
if (!_accountTextField.text.length || !_passwordTextField.text.length) { submit.alpha = 0.4; submit.enabled = NO; }}
阅读全文
posted @ 2015-07-23 15:30
火星的蝈蝈
阅读(156)
推荐(0)