摘要: 定时器的写法:第一种:scheduled的初始化方法将以默认mode直接添加到当前的runloop中.[NSTimer scheduledTimerWithTimeInterval:3 target:self selector:@selector(timerAction:) userInfo:nil... 阅读全文
posted @ 2015-08-29 20:40 百川hl 阅读(120) 评论(0) 推荐(0) 编辑
摘要: (1)AFNetworking目前比较好用的第三方,默认网络请求是异步,通过block回调的方式对返回的数据处理。注意事项:AFNetworking对服务器返回的ContentType要求比较严格,默认只支持application/json的返回。需要添加对text/html返回的支持,否则可能无法... 阅读全文
posted @ 2015-08-29 17:48 百川hl 阅读(489) 评论(0) 推荐(0) 编辑