title: iOS 7 - UIScrollView subView not showing
body: <p>Trying to add subviews to UIScrollView, which is defined in XIB file. The code below is how I tried to add subviews in my view controller. But no subviews were added.</p>
  
  <p>Any suggestions?</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view from its nib.
      CGRect frame = _tasksScrollView.frame;
      frame.size.width /= 3.0;
  
      NSArray *colors = [NSArray arrayWithObjects:[UIColor blueColor],
                                                  [UIColor redColor],
                                                  [UIColor yellowColor],
                                                  [UIColor greenColor],
                                                  [UIColor purpleColor],
                                                  nil];
  
      for (int i = 0; i &lt; [colors count]; i++, frame.origin.x += frame.size.width) {
          UIView *subView = [[UIView alloc] initWithFrame:frame];
          subView.backgroundColor = [colors objectAtIndex:i];
  
          [_tasksScrollView addSubview:subView];
      }
  
      _tasksScrollView.contentSize = CGSizeMake(frame.size.width * [colors count], frame.size.height);
  }
  </code></pre>