I'm trying to add part of a large NSArray
to another NSArray
. However, I'm doing something wrong since it keeps throwing errors.
This is the specific code:
@property (nonatomic, strong) NSMutableArray *searches;
@property (nonatomic, strong) NSMutableArray *chosenResult;
...bit further down...
for (NSString *string in self.searches[indexPath.row]) {
[self.chosenResult addObject:string];
}
This is the error:
'NSInvalidArgumentException', reason: '-[Search countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x7a1710d0'