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 NSArray
s, no for NSSet
s and NSDictionary
s
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 NSArray
s, no for NSSet
s and NSDictionary
s
精彩评论