title: How to connect dataSource outlet of a Page View Controller using Storyboard in Interface Builder
body: <p>According to Apple's documentation <a href="http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewControllerCatalog/Chapters/PageViewControllers.html" rel="noreferrer">here</a>, we should be able to add a Page View Controller into the storyboard and then optionally set the data source by connecting the outlets.</p>
  
  <blockquote>
    <h2>Creating a Page View Controller Interface Using a Storyboard</h2>
    
    <p>The Page-Based Application Xcode template creates a new project with a page view controller as the initial scene.</p>
    
    <p>To add a page view controller to an existing storyboard, do the following:</p>
    
    <ol>
    <li>Drag a page view controller out of the library. Add a page view controller scene to your storyboard.</li>
    <li>In the Attributes inspector, set up the appropriate options.</li>
    <li>Optionally, set a delegate, a data source, or both by connecting the corresponding outlets.</li>
    <li>Display it as the first view controller by selecting the option Is Initial View Controller in the Attributes inspector (or present the view controller in your user interface in another way.)</li>
    </ol>
  </blockquote>
  
  <p>I then defined a UIPageViewController subclass like so</p>
  
  <pre><code>@interface DetailsPageViewController : UIPageViewController &lt;UIPageViewControllerDataSource&gt;
  </code></pre>
  
  <p>but then when I tried to connect the data source outlet, it does not highlight the controller or allow to connect it. I have also tried implementing UIPageViewControllerDataSource on other controllers but I have the same problem of not being able to connect the outlet.</p>
  
  <p>Can anyone help?</p>