presentModalViewController from app delegate

前端 未结 3 2248
借酒劲吻你
借酒劲吻你 2021-02-20 09:49

How can I present a modal view controller from the app delegate\'s view, the top most? Trying to present a modal view controller from a UIView, which made me confused.

3条回答
  •  你的背包
    2021-02-20 10:11

    Application delegates do not manage a view. You should present a modal view controller from the -viewDidAppear: method of the first view controller that gets put on screen in -application:didFinishLaunchingWithOptions:.

提交回复
热议问题