views:

45

answers:

2

Hello,

Can each index of array hold the NSDictionary?

Thank You.

+3  A: 

An NSArray can hold any type of object, so yes, putting an NSDictionary in an NSArray works just fine.

frenetisch applaudierend
+5  A: 

Yes, the value of an NSArray can resolve to an object identifier for an NSDictionary. However, the array doesn't "hold" the NSDictionary, nor can the index of an NSArray be an NSDictionary. An index from an Array is always an integer value.

nessence