Hello guys!
I am trying to present a modal view controller. I have read the documentation, but something is strange. Here's my code:
NSLog(@"rc: %d", [modalViewController retainCount]);
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:modalViewController];
[self presentModalViewController:navigationController animated:YES];
[navigationController release];
NSLog(@"rc: %d", [modalViewController retainCount]);
And on the console, appears:
rc: 2
rc: 24
And I think 24 is very strange... What do you thin? Why is this happening?