你在Objective c和Swift中称之为什么?

时间:2016-02-12 06:18:40

标签: ios objective-c xcode swift mobile

您好,我是iOS开发的新手。只想问一下你在Objective-c和swift中称之为什么

^(NSArray *name){

// code here/ For loop/

};

非常感谢您的回复:)

1 个答案:

答案 0 :(得分:4)

这是Objective-C的代码。

它在Objective-C中称为块。 在快速类似的方法中使用Closure实现。

只需搜索 Blocks in Objective-C Closure in Swift