title: Delegate methods for UITableView inside UIPageViewController not being called?
body: <p>I have a series of VC's containing a tableview inside a pageviewcontroller, when it presents the first view all is fine and delegates are called. </p>
  
  <p>However after swiping the view goes blank, i can still see the background colour of the VC, the debugger shows the table is added to the view, but theres no contents. This seems to be caused due to delegate methods not being called, however it is the same controller template as the working initial view is created with. What could be the cause of this?</p>
  
  <p>Code for the page controller setup, the child views are set up as typical tableviews with the usual delegate methods:</p>
  
  <pre><code>extension PollContainerViewController: UIPageViewControllerDataSource {
  
  func viewControllerAtIndex(index: Int) -&gt; PollQuestionAndResultViewController? {
      if self.selectedPoll.questions.count == 0 || index &gt;= self.selectedPoll.questions.count {
          return nil
      }
      let PollQuestionResultViewController = PollQuestionAndResultViewController(pollQuestionView: PollQuestionAndResultView(frame: UIScreen.main.bounds), selectedPoll: self.selectedPoll, pageID: self.pageID, pageIndex: index)
      return PollQuestionResultViewController
  }
  
  
  func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -&gt; UIViewController? {
      guard var index = (viewController as! PollQuestionAndResultViewController).pageIndex else {return nil}
      pageControl.currentPage = index
      if (index &lt;= 0) {
          return nil
      }
      index -= 1
      return self.viewControllerAtIndex(index: index)
  }
  
  func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -&gt; UIViewController? {
      guard var index = (viewController as! PollQuestionAndResultViewController).pageIndex else {return nil}
      pageControl.currentPage = index
      index += 1
      if (index &gt;= self.selectedPoll.questions.count) {
          return nil
      }
      return self.viewControllerAtIndex(index: index)
  }
  </code></pre>
  
  <p>VDL setup:</p>
  
  <pre><code>func configurePollQuestions() {
      pageViewController = UIPageViewController(transitionStyle: UIPageViewControllerTransitionStyle.scroll, navigationOrientation: UIPageViewControllerNavigationOrientation.horizontal, options: nil)
      pageViewController.view.frame = UIScreen.main.bounds
      pageViewController.dataSource = self
      if let startPollQuestionViewController = self.viewControllerAtIndex(index: 0) {
          self.viewControllers.append(startPollQuestionViewController)
      }
      self.pageViewController.setViewControllers(self.viewControllers, direction: .forward, animated: false) { (finished) -&gt; Void in }
      self.addChildViewController(self.pageViewController)
      self.view.addSubview(self.pageViewController.view)
      self.pageViewController.didMove(toParentViewController: self)
      pageControl = UIPageControl()
      pageControl.backgroundColor = UIColor.darkGray
      pageControl.frame = CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: 40)
      pageControl.numberOfPages = selectedPoll.questions.count
      pageControl.isUserInteractionEnabled = false
      pageViewController.view.addSubview(pageControl)
  }
  </code></pre>
  
  <p>debugger image:</p>
  
  <p><a href="https://i.stack.imgur.com/Vkdb7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vkdb7.png" alt="enter image description here"></a></p>