Question is should i use properties for my view controllers?
Consider the following case:
I have a view controller object in my parent class: MyViewController *myVC;
I don't release this view controller in parent class's dealloc method.
I use view controller like this:
// Allocate and Initialize view controller myVC = [[MyViewController alloc] initWithNibName:@"newView" bundle:nil]; // Push View Controller [self.navigationController pushViewController:myVC animated:YES]; // Release memory [myVC release]; myVC = nil;
Is there any problem with this approach?