摘要: Here's the disassembly for objc_msgSend on ARMv6, iOS4.2.1 (sorry no ARMv7 devices on my desk at the moment). I'll try to annotate it: 0x32d98f0c : t... 阅读全文
posted @ 2012-12-17 23:25 Proteas 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 我们知道在 Objective-C 中给 nil 发送消息程序不会崩溃, Objective-C 是以 C 语言为基础的, PC 上,在 C 语言中对空指针进行操作, 程序会由于越界访问而出现保护错进而崩溃, 但是 Objective-C 中为什么不会崩溃呢? 原因需要从源代码中寻找, 下面是 ob... 阅读全文
posted @ 2012-12-17 23:20 Proteas 阅读(2527) 评论(3) 推荐(1) 编辑