iOS面試題:剖析Block

更多:iOS面試題大全web 1、什麼是Block? Block是將函數及其執行上下文封裝起來的對象。 好比:面試 NSInteger num = 3; NSInteger(^block)(NSInteger) = ^NSInteger(NSInteger n){ return n*num; }; block(2); 經過clang -rewrite-ob
相關文章
相關標籤/搜索