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

Nnavick

macrumors regular
Original poster
Oct 13, 2010
100
0
Hi,

When a tableView cell is selected i did

Code:
 [naccontroller pushViewController:newView animated:YES];

and when the newView's viewDidLoad method lunching I did
Code:
NsLog(@"Bla");

but it's happening only one time at runtime,

When I clicked on the back button and did
Code:
  [self.navigationController popViewControllerAnimated:YES];

the view disappear but when I click again on the cell and the newView popup again ,
the "viewDidLoad,viewWillAppear or the viewDidAppear method don't work
even I did on the dealoc method
Code:
self.view release;

what is the problem?

thanks

EDIT:

I solved it,
When the back button is hit I changed the view property to nil :)
 
Last edited by a moderator:
You know what the problem is.
Viewdidload and viewwillappear :)
Viewdidload will only launch once in a navigation, because it gets added on the stack.
A viewwillappear will show up each time, without setting properties to nil ;)

Code:
- (void) viewWillAppear:(BOOL)animated {
}
 
Last edited by a moderator:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.