presentController(withNames:["ScreenOne", "ScreenTwo", "ScreenThree"], contexts:nil)
执行上述行时,ScreenOne
屏幕显示如下:
first page in the array is highlighted
如何在执行上述行时显示第二页。即ScreenTwo
答案 0 :(得分: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()
}
}