1
presentController(withNames:["ScreenOne", "ScreenTwo", "ScreenThree"], contexts:nil)

执行上述行时,ScreenOne屏幕显示如下:

突出显示数组中的第一页

执行上述行时,我将如何显示第二页。IEScreenTwo

我希望第二页像这样显示在数组中

4

1 回答 1

0

如果要显示另一个页面,则需要在awake所选控制器的方法中插入对becomeCurrentPage().

override func awake(withContext context: Any?) {
    super.awake(withContext: context)

    // Do your stuff with the context and determine if it is the controller to display

    if mustBeDisplayed {
        becomeCurrentPage()
    }
}
于 2019-02-11T10:49:25.990 回答