title: Can't get UILabels to appear on UIViews created dynammically
body: <p>Trying to do something fairly simple. I'm creating a row of rectangles that are placed in a horizontally scrolling <code>UIScrollView</code>. The rectangles lay out perfectly. However, each rectangle has a <code>UILabel</code> placed on it. Only the first label is displayed. None of the others are. The red rectangles here are the basic <code>CGRect</code>s. The yellow is for me to debug whether the label is drawing correctly. As you can easily see, only the first label is displayed:</p>
  
  <p><img src="https://i.stack.imgur.com/dU94O.png" alt="enter image description here"></p>
  
  <pre><code>self.dayButtonsArray = [[NSMutableArray alloc] initWithCapacity:21];
  
  CGFloat buttonSpacing = 2.0f;
  CGFloat buttonWidth = 50.0f;
  CGFloat buttonHeight = self.contentView.frame.size.height;
  CGFloat startX = self.contentView.frame.origin.x;
  CGFloat thisX = startX;
  
  for (int i=0; i&lt;21; i++) {
  
      CGRect frame = CGRectMake(thisX, self.contentView.frame.origin.y, buttonWidth, buttonHeight);
      UIView *thisButton = [[UIView alloc] initWithFrame:frame];
  
      // set up a label for each view
      UILabel *label = [[UILabel alloc] initWithFrame:frame];
      [label setTextColor:[UIColor blackColor]];
      label.font = [UIFont fontWithName:DEFAULT_FONT size:14];
      label.textAlignment = NSTextAlignmentCenter;
      [label setText:[NSString stringWithFormat:@"DAY %d", i+1]];
      [labelsArray addObject:label];
  
      [thisButton setBackgroundColor:[UIColor redColor]];
  
      // now add these elements
      [thisButton addSubview:label];
      [thisButton bringSubviewToFront:label];
      [self.contentView addSubview:thisButton];
      [self.contentView bringSubviewToFront:thisButton];
      [self.dayButtonsArray addObject:thisButton];
  
      CGRect contentSize = self.contentView.frame;
      contentSize.size.width = ((i+1) * buttonWidth) + (i * buttonSpacing);
      self.contentView.frame = contentSize;
  
      thisX += buttonWidth + buttonSpacing;
  }
  </code></pre>