cocoa touch - iPad status bar overlaps view -
in ipad application, have 768x30 px view place below status bar coordinates (0,0). status bar visible. when app launches status bar overlaps view, view appears under status bar. creating view in interface builder , appears correctly on there.
the view appears in correct position automatically after screen rotates though. , if rotate landscape position still correct. right after launch, before rotations appears out of place. ideas?
thanks
edit: in app delegate's didfinishlaunchingwithoptions, add
viewcontroller.view.frame = window.screen.applicationframe;
this somehow magically tells view controller have correct frame both when app launched (in orientation) after rotating device.
previously, had suggested:
i able resolve issue adding window nib , adding view it, then.
hopefully too.
Comments
Post a Comment