title: addSubview in "for loop" with count
body: <p>I have a question about the FOR loop and Subviews. I want to show a different SubView every time the loop runs with a different subview name. The name must be "hoofdstukController" + the i count. </p>
  
  <p>How can i do this? I tried a couple of methods but all crashed the app. This is my loop:</p>
  
  <pre><code>_viewControllers = [[NSMutableArray alloc] init];
  for (int i = 0; i &lt; 10; i++)
  {
      CGRect frame = _scrollView.frame;
      frame.origin.x = frame.size.width * i;
      frame.origin.y = 0; 
      hoofdstukController.view.frame = frame;
      [_scrollView addSubview:hoofdstukController.view];
      [_viewControllers addObject:hoofdstukController];
  }
  </code></pre>
  
  <p>Hope anyone can push me in the right direction!</p>
  
  <p>Thanks.</p>