【发布时间】:2016-06-12 09:53:19
【问题描述】:
我已经在 Objective-c 项目中声明了自定义对象:
Student* student1 = [[Student alloc]init];
Student* student2 = [[Student alloc]init];
Student* student3 = [[Student alloc]init];
Student* student4 = [[Student alloc]init];
Student* student5 = [[Student alloc]init];
Student* student6 = [[Student alloc]init];
如何循环调用它们
for (int i=1; i<=6; i++)
{
} ?
【问题讨论】:
-
您应该为此使用数组
-
你不要!使用数组。
标签: objective-c