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

后端 未结 16 852
暖寄归人
暖寄归人 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:03

    I've run into this a few times and did the workaround (re-setting the frame) because of time pressure, but the last time I ran into it I found a real fix. Instead of creating your top level view controller in code (if it is), try having it be created in the UIWindow and IBOutlet it to the AppDelegate instead.

    Worked for me.

提交回复
热议问题