The NSMutableArray can store every NSObject, but can I mention the NSMutableArray can get store my item only, for example, a NSMutableArray that store NSString only?
I remember that the java array can do that, can the objective C array do the similar things? Thanks.
The NSMutableArray can store every NSObject, but can I mention the NSMutableArray can get
Share
Objective-C does not have this kind of generic constraint on NSArray/NSMutableArray. You have therefore two solutions: