presentController(withNames:["ScreenOne", "ScreenTwo", "ScreenThree"], contexts:nil)
在执行上面的行的情况下,屏幕ScreenOne
如下面所:
first page in the array is highlighted
我将如何去获得的第二页是执行上面的线什么时候出现。即ScreenTwo
如果你想显示另一个页面,你需要插入,在选择控制装置的呼叫到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()
}
}