Possible Duplicate:
UIViewController returns invalid frame?
While debugging i've noticed that in viewDidLoad
call my view frame is origin=(x=0, y=20) size=(width=320, height=460)
which is not accurate. In viewWillAppear
call it is set up correctly: origin=(x=0, y=0) size=(width=320, height=416)
taking into consideration navigation bar height.
My subviews layout depends on root view, but i don't want to set up them each time view will appear.
How should we deal with these two calls?