title: UIView with adaptable height according to content - Objective-c
body: <p>I would like to create an UIView that fits his content. The content is an UILabel with dinamic text.</p>
  
  <pre><code>UIView *myview = [ [UIView alloc ] initWithFrame:CGRectMake(10.0, 10.0, 700.0, 100.0)];
  myview.backgroundColor = [UIColor redColor];
  
  [self.view addSubview:myview];
  
  UILabel *myLabel = [ [UILabel alloc ] initWithFrame:CGRectMake(10.0, 10.0, 500.0, 43.0) ];
  myLabel.textAlignment = UITextAlignmentLeft;
  myLabel.textColor = [UIColor whiteColor];
  myLabel.backgroundColor = [UIColor blackColor];
  myLabel.font = [UIFont fontWithName:@"Arial Rounded MT Bold" size:(36.0)];
  [myView addSubview:myLabel];
  myLabel.numberOfLines = 0;
  myLabel.text = @"This is an UILabel. This is an UILabel. This is an UILabel. This is an UILabel. This is an UILabel. This is an UILabel. This is an UILabel. ";
  [myLabel sizeToFit];
  </code></pre>
  
  <p>I attach a screenshot:</p>
  
  <p><a href="http://i52.tinypic.com/bg36oj.png" rel="nofollow">Screenshot</a></p>