title: Programmatically add UIButton to custom ViewController with storyboard in place
body: <p>I've successfully implemented walkthrough screens by following <a href="http://www.appcoda.com/uipageviewcontroller-storyboard-tutorial/" rel="nofollow" title="Create UIPageViewController Using Storyboard">AppCoda's Create UIPageViewController Using Storyboard tutorial</a>. At the end of the example a UIPageControl is created in code and now I'm trying to add a UIButton the same way, programmatically.</p>
  
  <p>The button appears if added via storyboard but otherwise none of these have worked for me when (individually) added to my <code>viewDidLoad</code>:</p>
  
  <pre><code>UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  [button setTitle:@"Show View" forState:UIControlStateNormal];
  button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
  // [self.view addSubview:button];
  // [self.view bringSubviewToFront:button];
  // [self.view insertSubview:button atIndex:0];
  // [self.view insertSubview:button atIndex:[self.view subviews].count + 1];
  // [self.view insertSubview:button aboveSubview:self.view];
  // [self initButton:button];
  </code></pre>
  
  <p>There's got to be something relatively simple that I'm missing. Should I just stick to Android?</p>