title: UITextView text not displayed when parent view is UIScrollView UNTIL I scoll
body: <p>I have a <code>UITextView</code> inside of a <code>UIScrollView</code> that is configured <strong>offscreen</strong> when the code below runs in my <code>ViewController's</code> <code>viewDidLoad</code>.  Unfortunately, if the "eventDetails" text is particularly long nothing is displayed inside the <code>UITextView</code> until I interact with it (e.g click inside and drag for example).</p>
  
  <p><strong>My question:  How to have it so the text is displayed in the UITextView WITHOUT forcing the user to interact with the <code>UITextView</code> first?</strong></p>
  
  <p>Here is the code:</p>
  
  <pre><code>UITextView *txtDetails = [[UITextView alloc] initWithFrame:CGRectMake(-4, yOffset, page3ScrollView.frame.size.width, 0)];
  [txtDetails setEditable:NO];
  [txtDetails setScrollEnabled:NO];
  [txtDetails setFont:[UIFont systemFontOfSize:12]];
  [txtDetails resizeAndSetTextWithMaxSize:CGSizeMake(txtDetails.frame.size.width, 999999999) forText:eventDetails withAdditionalHeightOf:16.f];
  
  [page3ScrollView addSubview:txtDetails];
  
  CGRect frame = txtDetails.frame;
  frame.size.height = [txtDetails contentSize].height;
  txtDetails.frame = frame;
  
  [page3ScrollView setContentSize:CGSizeMake(page3ScrollView.frame.size.width, txtDetails.frame.origin.y + txtDetails.frame.size.height)];
  </code></pre>
  
  <p>Thanks</p>