Do
for (id object in array) {
// do something with objec开发者_开发问答t
}
guarantee to return the objects in the order they are put in the array?
It's just shorthand for an enumerator. So yes for NSArrays, no for NSSets and NSDictionarys
Do
for (id object in array) {
// do something with objec开发者_开发问答t
}
guarantee to return the objects in the order they are put in the array?
It's just shorthand for an enumerator. So yes for NSArrays, no for NSSets and NSDictionarys
精彩评论