Advantages, problems, examples of adding another UIWindow to an iOS app?

前端 未结 3 888
無奈伤痛
無奈伤痛 2020-11-27 10:04

Recently I\'ve been wondering about the fact that that an iOS app only has one UIWindow. It does not seem to be an issue to create another UIWindow

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 10:27

    A UIWindow can float above other UI elements like the system keyboard.

    To address your last paragraph: Make a UIWindow with the same frame as your main window. Set its windowLevel property to UIWindowLevelStatusBar. Set its hidden property to NO.

提交回复
热议问题