标签: ios objective-c xcode swift mobile
您好,我是iOS开发的新手。只想问一下你在Objective-c和swift中称之为什么
^(NSArray *name){ // code here/ For loop/ };
非常感谢您的回复:)
答案 0 :(得分:4)
这是Objective-C的代码。
它在Objective-C中称为块。 在快速类似的方法中使用Closure实现。
只需搜索 Blocks in Objective-C 和 Closure in Swift 。
Blocks in Objective-C
Closure in Swift