title: iOS: PageViewController with Buttons
body: <p>I am new to iOS app development and I am attempting to create use a pageviewcontroller to have a left and right scroll-able menu with clickable buttons. I have a top and bottom section
  which I do not want to scroll. The scrollable menu is in the middle. I followed <a href="https://spin.atomicobject.com/2015/12/23/swift-uipageviewcontroller-tutorial/" rel="nofollow">this</a> tutorial and was able to get the desired effect but I am unable to do anything with the buttons inside each of the view controllers. I am guessing that this is possibly due this chunk of code from the linked tutorial:</p>
  
  <pre><code>private(set) lazy var orderedViewControllers: [UIViewController] = {
   return [self.newColoredViewController("Green"),
      self.newColoredViewController("Red"),
      self.newColoredViewController("Blue")] }()
  </code></pre>
  
  <p><code>private func newColoredViewController(color: String) -&gt; UIViewController {
      return UIStoryboard(name: "Main", bundle: nil) .
          instantiateViewControllerWithIdentifier("\(color)ViewController")
  }</code></p>
  
  <p>Is it creating a viewcontroller class on the fly which I am unable to access? How do I go about controlling the buttons on each viewcontroller.</p>
  
  <p>Here is a basic drawing of the app.</p>
  
  <p><a href="http://i.stack.imgur.com/ix4Ou.png" rel="nofollow">App Sample</a></p>
  
  <p>There is a top and bottom section, with the horizontal scrollable menu in the middle. I am developing an Android and iPhone version. I currently have the Android version finished and need the iPhone to look as close to the Android as possible.</p>