11 2015 档案
摘要:NSArray *keys = [someDictionary allKeys];NSArray *sortedKeys = [keys sortedArrayUsingComparator:^NSComparisonResult(id a, id b) { NSString *first =...
阅读全文
摘要:- (void)starButtonClicked:(id)sender{ //先将未到时间执行前的任务取消。 [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(todoSomething:...
阅读全文
摘要:庸者的救赎2015-11-20 02:30:23AFN那个使用的时候不需要弱引用的,因为从你的封装方式来看,那个block并不会被当前视图控制器持有,而是被manager持有了,所以不需要__weak; 并不是所有的block都需要使用弱引用的 三种情况: 1. 如果这个block不被持有,那么你完...
阅读全文
摘要:下拉刷新几乎是每个应用都会有的功能,且大部分用的都是开源项目,下载地址:下拉刷新。如何在页面刚打开的时候自动触发下拉刷新的呢?只需要一句代码,在PullToRefreshAdapterViewBase类中加入下面的代码:public void autoRefresh(){this.postDelay...
阅读全文
摘要:http://www.ruanyifeng.com/blog/2011/09/curl.htmlcurl --user-agent "[User Agent]" [URL]curl --user-agent "talk/1.1; ios/9.2; iphone/6.0.00; 320*480;" h...
阅读全文
摘要:http://stackoverflow.com/questions/7103159/androids-addjavascriptinterface-equivalent-in-ios
阅读全文
摘要:Objective-C上地球坐标系到火星坐标系转换算法 http://blog.csdn.net/zhaoxy_thu/article/details/17033347
阅读全文
摘要:http://www.tmtpost.com/1457562.htmliOS 面试基础题目http://www.jianshu.com/p/4d7292741f53
阅读全文
摘要:https://autolayoutconstraints.com/
阅读全文