Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

coachroebuck

macrumors newbie
Original poster
Apr 18, 2009
3
0
I thought I'd use this sample code as a foundation to build an app. I see this the "foundation" is giving me a little trouble. There's some type of memory issue(s) in this program. "Program Received Signal 0" error. The Instrument Leak/Performance Tool didn't quite pin point the culprit, but I noticed lines 172 - 176 in the RootViewController.m file was causing a problem:

Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	EventDetailViewController *inspector = [[EventDetailViewController alloc] initWithNibName:@"EventDetailViewController" bundle:nil];
	inspector.event = [eventsArray objectAtIndex:indexPath.row];
	[self.navigationController pushViewController:inspector animated:YES];
	[inspector release];
}

I decided to allocate that EventDetailViewController object inside the viewDidLoad function instead (and only once). That modification seemed to fix one problem, but I had to add a viewWillAppear function. I now see something else is going on. Anyone got any ideas?


http://developer.apple.com/iphone/library/samplecode/PhotoLocations/index.html
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.