Ok, I'm analyzing my app ready to put on the app store.
The last error is an "Incorrect decrement of reference count of an object" on my UITabBarController.
Code:
//initialize the UITabBarController
tabBarController = [[UITabBarController alloc] init];
//
UIViewController *volume = [[CalculatorVolume alloc] init];
**Incorrect decrement here >> [volume.tabBarItem initWithTitle:@"Calculator" image:[UIImage imageNamed:@"calc.png"] tag:100];
//
UIViewController *photo = [[PhotoGallery alloc] init];
[photo.tabBarItem initWithTitle:@"Gallery" image:[UIImage imageNamed:@"gallery.png"] tag:101] ;
//
UIViewController *info = [[Info alloc] init];
[info.tabBarItem initWithTitle:@"Credits" image:[UIImage imageNamed:@"more.png"] tag:102];
//
UIViewController *nutrient = [[Nutrients alloc] init];
[nutrient.tabBarItem initWithTitle:@"Nutrients" image:[UIImage imageNamed:@"nutrients.png"] tag:103];
//
UIViewController *tracker = [[TrackerNav alloc] init];
[tracker.tabBarItem initWithTitle:@"Tracker" image:[UIImage imageNamed:@"track.png"] tag:104];
//add the UIViewControllers to the UITabController
tabBarController.viewControllers = [NSArray arrayWithObjects:volume,tracker,photo,nutrient,info,nil];
//release
[volume release];
[photo release];
[info release];
[nutrient release];
[tracker release];
Any insights?
thanks