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

bkphat

macrumors newbie
Original poster
Jun 8, 2008
17
0
What method is called once a view is displayed fully?
Specifically, I have added a subview to a superview. Only when this subview is fully visible on screen (which may take a while due to content) do I want to execute this function. I tried didMoveSuperview and didMoveToWindow, but both are called before the view is displayed to the user.

thanks

bk
 

white89gt

macrumors regular
Jan 18, 2006
133
0
viewDidLoad: is called right after the view loads, and is usually only called once. The viewWillAppear or viewDidAppear methods are called every time that particular view appears on screen, so they could be called multiple times depending on how much switching back and forth between views you do.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.