Reputation: 939
my question is that i use ios 4.1 and viewWillAppear is not call when i go via
[self.view addSubView:self.mySecondView.view];
then and in the first view i alloc second view on ViewDidLoad
.. i just want to call ViewWillApear
on Second View because want to do the task dynamic.
is their some thing alternative... because InitWithNibName
method also fire when alloc and init occur.. i want to fire some method when i add to that view.
Thanks
Upvotes: 0
Views: 1058
Reputation: 31720
The same issue is discussed before,Just go through below SO links.
iPhone viewWillAppear not firing
viewDidLoad gets called, viewWillAppear does not get called, view does not appear on screen
http://forums.macrumors.com/showthread.php?t=575530
here is the tutorial post
http://www.idev101.com/code/User_Interface/UINavigationController/viewWillAppear.html
Upvotes: 2