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

jagatnibas

macrumors regular
Original poster
Jul 28, 2008
126
0
Hi All,

I initialize a viewcontroller with initwithnibfile function and store that in a variable. similarly another view control.

then i switch between adding and removing them as superview to window.

but the thing is except for the first time, viewdidload function isnot getting called !. So when is exactly the view did load called ? only when we alloc and initwithnibfile ?

regards
jagat
 
If you look at the utility app template project it does this. It switches the view controllers based on the frontside and backside. I'm pretty sure it calls viewDidAppear itself.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.