title: Programmatically connect buttons using storyboard
body: <p>I have been trying to solve a big "thing" in my application for hours. I'm so tired that I don't even remember what word I should use instead of the "thing" word. :p</p>
  
  <p>This is the first time I'm using storyboards in my app.</p>
  
  <p>Im writing out X amount of buttons programmatically which later will be dependent on data from a database. As the title says, my problem is that I'm using a storyboard and can't get a grip on how to create a new view in the storyboard that the buttons then can change to. And also with some data from the first view. </p>
  
  <p>Here is some code if thats helps you help me. ;p</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      int heightGrowt = 0;
  
      for(int i = 0; i &lt; 10; i++)
      {
          UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  
          button.frame = CGRectMake(10, heightGrowt, 300, 40);
  
          heightGrowt = heightGrowt + 50;
  
          [button setTitle:@"First element" forState:UIControlStateNormal];
  
          [scrollWiew addSubview:button];
      }
  
      [scrollWiew setScrollEnabled:YES];
      [scrollWiew setContentSize:CGSizeMake(320, heightGrowt)];
  }
  </code></pre>
  
  <p>If you have/know anything that can help me i would be very grateful. :)</p>