In Objective-C, you can put anything into array — even mix and match objects.
在Objective - c中,您可以将任何东西放入数组—甚至混合和匹配对象。
In this case, it's an array of three objects.
在这种情况下,它是三个对象的数组。
Pretend that you need to return an array of task objects.
假定您需要返回任务对象数组。
In this case, I simply add book objects to an array called g_books.
在本例中,我只简单地向名为g_books的数组添加了book对象。
And the output is always the same: an array of Stock objects.
输出也是一样的:Stock对象数组。
And the output is always the same: an array of Stock objects.
输出也是一样的:Stock对象数组。
应用推荐