I\'m trying to to return a NSMutableArray but I got this error in the console: 2010-10-01 14:12:21.348
Is there a method, like containsObject: for NSMUtableArrays 开发者_StackOverflow社区to check if an object exists in there without having to loop through the whole array and check each element? What\'s
Are there any 开发者_如何学JAVAspecial methods to make swapping elements in an NSMutableArray easier or more direct?exchangeObjectAtIndex:withObjectAtIndex: does exactly this.
I want to save an NSMutableArray or NSDictionary as a permanent file. Then, I would like to reopen the file later.
I have an entity which stores generic information about an event. In the entity, the date the event took place is stored.
The following code works perfectly and shows the correct output: - (void)viewDidLoad { [super viewDidLoad];
SBJsonParser *parser = [[SBJsonParser alloc] init]; NSMutableArray *componenti = [parser objectWithString:@\"[\\\"Item1\\\",\\\"Item2\\\"]\"];
i have a leak issue in my app. I\'m trying to add and remove objects to a NSMutableArray. Here is the class Demande :
I have a table view that is populated by objects in an array. I want to give the user the option to delete table entries. I was wondering if it would be easier if I used NSDictionary instead of NSMuta
These both work in my app开发者_如何学运维 without any noticeable difference: 1) theArray = [[NSMutableArray alloc] initWithArray:[NSKeyedUnarchiver unarchiveObjectWithData:theData]];