What's the difference between a dictionary and an array?

前端 未结 6 769
长发绾君心
长发绾君心 2020-12-15 07:04

What is the difference between a dictionary and an array, especially when working with PLIST files? What are the advantages of using one over the other? Thanks!

6条回答
  •  独厮守ぢ
    2020-12-15 07:34

    NSDictionary does not retain its 'value' objects, but an NSMutableArray retain the objects added to it. For more information NSDictionary and NSArray

提交回复
热议问题