/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Event * anEvent = self.event; ClubPlanetControllerAppDelegate * appDelegate = (ClubPlanetControllerAppDelegate *)[UIApplication sharedApplication].delegate; [appDelegate.allEvents replaceObjectAtIndex:[appDelegate.allEvents indexOfObject:event] withObject:anEvent];
URL: http://stackoverflow.com/questions/2114806/object-life-after-death-retain-count-0