摘要: 1 // 后台执行: 2 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 3 // something 4 }); 5 6 // 主线程执行: 7 dispatch_async(dispatch_get_main_que... 阅读全文
posted @ 2015-09-11 23:11 梦影随风 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 还是跟上一篇委托传值demo一样的,大家可以对比一下;block传值也是一定要在跳转的方法里调用。代码如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 5 6 @endViewControll... 阅读全文
posted @ 2015-09-08 14:51 梦影随风 阅读(238) 评论(0) 推荐(0) 编辑
摘要: //ViewController.m --->>>>#import "ViewController.h"#import "MoneyPickerView.h"@interface ViewController (){ UITableView *_tableView;}@property (n... 阅读全文
posted @ 2015-09-06 21:11 梦影随风 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #import "AFNetworking.h"typedef void(^SuccessBlock)(AFHTTPRequestOperation * operation, id responseObj);typedef void(^FailBlock)(NSError * error, id r... 阅读全文
posted @ 2015-09-04 21:12 梦影随风 阅读(189) 评论(0) 推荐(0) 编辑
摘要: http://www.cocoachina.com/industry/20140527/8570.html//为什么使用runtimehttp://yulingtianxia.com/blog/2014/11/05/objective-c-runtime/ //其他讲解http://blog.csd... 阅读全文
posted @ 2015-09-02 12:01 梦影随风 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 其实这个的用法很简单,因为有系统自定宏:NS_ENUM,NS_OPTIONS。我们基本就只用这两个就可以了;看看下面的简单例子就明白了。typedef NS_ENUM(NSInteger, Test1) {//以下是枚举成员Test1A = 0,Test1B = 1,Test1C = 2,Test1... 阅读全文
posted @ 2015-09-01 14:59 梦影随风 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 等待更新! 阅读全文
posted @ 2015-09-01 14:53 梦影随风 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 等待更新! 阅读全文
posted @ 2015-09-01 14:48 梦影随风 阅读(127) 评论(0) 推荐(0) 编辑
摘要: http://onevcat.com/2014/01/black-magic-in-macro/ 宏定义的黑魔法 - 宏菜鸟起飞手册此上是宏定义的概要和方法,接下来列举一些经常用到的宏;1.首次启动判断:#define First_Launched @"firstLaunch"2.ios7系统判断... 阅读全文
posted @ 2015-09-01 14:34 梦影随风 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 简介Charles是在Mac下常用的截取网络封包的工具,在做iOS开发时,我们为了调试与服务器端的网络通讯协议,常常需要截取网络封包来分析。Charles通过将自己设置成系统的网络访问代理服务器,使得所有的网络访问请求都通过它来完成,从而实现了网络封包的截取和分析。Charles是收费软件,可以免费... 阅读全文
posted @ 2015-09-01 14:31 梦影随风 阅读(334) 评论(0) 推荐(0) 编辑