title: Force initialize on ViewController in UIPageViewContoller iOS
body: <p>Im using a page based application very similar to the standard template from apple (page based app). I want all the pages to be loaded and kept in memory at start up, but it doesnt work. I keep all the <code>ViewControllers</code> that <code>UIPageViewController</code> displays in an <code>NSArray</code> which I initiate. The problem is that the <code>ViewControllers</code> are not initilized until the <code>PageViewController</code> calls them. How do I force initiation of <code>ViewControllers</code> right here in the init method of the <code>ModelController</code>. </p>
  
  <pre><code>- (id)init
  {
  self = [super init];
  if (self) {
  
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
  
      UIViewController *historyViewController = [storyboard instantiateViewControllerWithIdentifier:@"HistoryViewController"];
      historyViewController.restorationIdentifier= HistoryRestorationID;
      UIViewController *totalViewController = [storyboard instantiateViewControllerWithIdentifier:@"TotalViewSlidingController"];
      totalViewController.restorationIdentifier= TotalRestorationID;
      PlugTableViewController *plugViewController = [storyboard instantiateViewControllerWithIdentifier:@"PlugSlidingViewController"];
      plugViewController.restorationIdentifier= PlugRestorationID;
  
      //Force initiation of ViewController here!
  
      pages = [[NSArray alloc] initWithObjects:historyViewController,totalViewController,plugViewController, nil];
  
  }
  return self;
  </code></pre>
  
  <p>}</p>
  
  <p>The reason why I want to initiate them directly, is because they take time to initiate. </p>