Replacing object in an NSMutableArray


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Event * anEvent = self.event;
  2.  
  3. ClubPlanetControllerAppDelegate * appDelegate = (ClubPlanetControllerAppDelegate *)[UIApplication sharedApplication].delegate;
  4.  
  5. [appDelegate.allEvents replaceObjectAtIndex:[appDelegate.allEvents indexOfObject:event] withObject:anEvent];

URL: http://stackoverflow.com/questions/2114806/object-life-after-death-retain-count-0

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.