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

when the above line is executed, the ScreenOne screen shows up as below:

first page in the array is highlighted

how would I go about getting the second page to show up when the above line is executed. i.e. ScreenTwo

I want second page to show up in the array like this

as diu
  • 1,010
  • 15
  • 31
  • What are you trying to do? Do you want the array to create a paginator controller with the items? Are the items nibs? – Allison Jun 26 '17 at 23:26
  • @Sirens I'm currently presented with `ScreenOne` with pagination and they are ordered as per the array. No issues with order. I need the `ScreenTwo` to show up with option to either swipe left to see `ScreenThree` or an option to swipe right to see `ScreenOne` – as diu Jun 26 '17 at 23:32
  • Any news on that? Have you managed to succeed? – Zaphod Feb 08 '19 at 09:31

1 Answers1

0

If you want to display another page, you'll need to insert, in the awake method of the chosen controller a call to 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()
    }
}
Zaphod
  • 6,758
  • 3
  • 40
  • 60