title: Using Multiple Storyboards in iOS
body: <p>My objective is to create a tabbed application, then the view for each of the tabs are constructed in separate storyboards.</p>
  
  <p><img src="https://i.stack.imgur.com/Nw6Zn.png" alt="Storyboard screenshot"></p>
  
  <p>My mainstoryboard is a tab view.</p>
  
  <p>Then I create a secondary storyboard (storyboard#2) with 2 View Controllers. The first view controller (also ticked as initial) have a button, and segue (modal) to 2nd view. <img src="https://i.stack.imgur.com/s848R.png" alt="First view controller"></p>
  
  <p>I managed to load the view by subclassing and overriding loadView from storyboard#2.
  <img src="https://i.stack.imgur.com/z7Mgw.png" alt="loadView override"></p>
  
  <p>Here's the simulator output.</p>
  
  <p><img src="https://i.stack.imgur.com/MvnU6.png" alt="Simulator"></p>
  
  <p>When click on the "click me" button, I get a <code>EXC_BAD_ACCESS</code>. The segue does not work, seems like the second storyboard is not being loaded completely.</p>
  
  <p>Has anyone tried to do this before and get it working? There's a youtube video from SkillMaster.net but he does not demonstrate if a segue is working under the secondary storyboard. the video is here: <a href="http://youtu.be/D4_twoYvB4M" rel="noreferrer">http://youtu.be/D4_twoYvB4M</a></p>
  
  <p>Thanks for any input and help!</p>
  
  <p>Screenshots:</p>
  
  <ul>
  <li><a href="http://www.box.com/s/njnyzjoqg8pnqofv838m" rel="noreferrer">http://www.box.com/s/njnyzjoqg8pnqofv838m</a></li>
  <li><a href="http://www.box.com/s/8dqygclmp5ic86e47bi5" rel="noreferrer">http://www.box.com/s/8dqygclmp5ic86e47bi5</a></li>
  <li><a href="http://www.box.com/s/k7foe7gpgh2rs3y8gqxd" rel="noreferrer">http://www.box.com/s/k7foe7gpgh2rs3y8gqxd</a></li>
  <li><a href="http://www.box.com/s/rym111x7xqxqao51ruip" rel="noreferrer">http://www.box.com/s/rym111x7xqxqao51ruip</a></li>
  </ul>