IPhone - After dismissing Modal View Controller - gap is left at top of page

后端 未结 16 970
暖寄归人
暖寄归人 2020-12-24 07:07

When starting the app, if the user doesn\'t have login information stored, I want to display a modal view controller to force the entry of this information. I found through

16条回答
  •  温柔的废话
    2020-12-24 08:01

    I found a more "elegant" way of doing this. If you add a top view to your window, which is the same size as the window, and add subviews to that top view instead of the window, all subviews will be offset by 20 pixels in the right direction, status bar visibile, no gaps anywhere and even rotation will work correctly. I tested it with iPad and iPhone 4.3 and 5.0... What's the catch? ;)

提交回复
热议问题