我能指望它从数组的开头到结尾的顺序吗?在文档中找不到任何关于此的内容.
即是
for (id val in array)
{
NSLog(@"%@", val);
}
Run Code Online (Sandbox Code Playgroud)
总是打印出来的
for (int i = 0; i < [array count]; ++i)
{
NSLog(@"%@", [array objectAtIndex:i]);
}
Run Code Online (Sandbox Code Playgroud)