- 博客(4)
- 资源 (10)
- 收藏
- 关注
原创 block小结
根据Block在内存中的位置分为三种类型NSGlobalBlock,NSStackBlock, NSMallocBlock NSGlobalBlock:我们可以通过是否引用外部变量识别,未引用外部变量即为NSGlobalBlock,可以当做函数使用。 NSStackBlock:block的isa指向的不是object_class,而是_NSConcreteStackBloc
2015-03-30 16:50:23 733
原创 iOS异常处理并发送崩溃报告到服务器:NSSetUncaughtExceptionHandler及signal
在程序中常常会遇到崩溃,我们可以通过以下两种途径来捕获崩溃信息发送到我们的服务器;这两种途径会捕获不同的崩溃信号; 途径一: void NSSetUncaughtExceptionHandler(NSUncaughtExceptionHandler *); Discussion Sets the top-level error-handling function where you can ...
2015-03-26 15:59:04 1113
原创 NSNotificationQueue多线程
首先上代码: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIButton *button = [UIButton buttonWithType:UIButtonTyp
2015-03-18 11:38:24 3010
原创 NSNotificationCenter的同步和异步
首先上代码: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIButton *button = [UIButton buttonWithType:UIButtonTyp
2015-03-17 18:49:17 5460 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人