title: iPhone: UITextView not expanding while editing
body: <p>I am using UITextView on a scroll view ...and I want it to auto expand when I write something in it ...... but I am unable to do it ...</p>
  
  <pre><code>textViewBusiness = [[UITextView alloc] initWithFrame:CGRectMake(25,332,268,60)];
  textViewBusiness.text=strMyBusiness;
  textViewBusiness.editable=NO;
  textViewBusiness.font = [UIFont fontWithName:@"Arial" size: 17.0];
  textViewBusiness.layer.borderWidth = 2.0f;
  textViewBusiness.layer.borderColor = [[UIColor grayColor] CGColor];
  textViewBusiness.backgroundColor = [UIColor clearColor];
  [textViewBusiness setTextColor:[UIColor blackColor]];
  [self.scrollView addSubview: textViewBusiness];
  
  CGRect frame = textViewBusiness.frame;
  frame.size.height = textViewBusiness.contentSize.height;
  textViewBusiness.frame = frame;
  </code></pre>
  
  <p>This code is not working for me ...</p>
  
  <p>Thanks</p>