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:
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
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