title: Dynamic expand UITextView on ios 7
body: <p>I am using this code</p>
  
  <pre><code>CGRect frame = self.mytext.frame;
  frame.size.height = self.mytext.contentSize.height;
  self.mytext.frame = frame;
  </code></pre>
  
  <p>But it doesn`t work in iOS 7. Does anyone know why or have the same problem?</p>
  
  <p><strong>EDITED:</strong></p>
  
  <p>Sorry.
  I made an UIView, a UITextView and a UIScrollView so i can load the text in my uitextview expand.</p>
  
  <p>I used this code in viewDidLoad</p>
  
  <pre><code>CGRect frame = self.moreDetailsTextView.frame;
  frame.size.height = self.moreDetailsTextView.contentSize.height;
  self.moreDetailsTextView.frame = frame;
  
  CGRect moreViewFrame =  self.moreDetailsView.frame;
  moreViewFrame.size.height = frame.size.height + 270;
  self.moreDetailsView.frame = moreViewFrame;
  
  int scrollViewHeight =  moreViewFrame.size.height + 235;
  self.scrollView.contentSize = CGSizeMake(320, scrollViewHeight);
  </code></pre>
  
  <p>This was working fine in ios6, but now with xcode5 and ios7 the uitextview does not expand when i test the app in the simulator.</p>