iOS面试题:剖析Block

更多:iOS面试题大全web 1、什么是Block? Block是将函数及其执行上下文封装起来的对象。 好比:面试 NSInteger num = 3; NSInteger(^block)(NSInteger) = ^NSInteger(NSInteger n){ return n*num; }; block(2); 经过clang -rewrite-ob
相关文章
相关标签/搜索