37

理清 Block 底层结构及其捕获行为

 5 years ago
source link: https://juejin.im/post/5bb09160f265da0adb30e30d
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Block 的本质 本质 Block 的本质是一个 Objective-C 对象,它内部也拥有一个 isa 指针。 Block 是封装了函数及其调用环境的 Objective-C 对象 底层数据结构 一个简单示例: int main(int argc, c

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK