title: How to make a text label to fit in rectangle in objective c
body: <p>I have a label containing string "Hello" i want this label to fit in a rectangle. How can i make the rectangle size same as the size of label? Here is my code.</p>
  
  <pre><code>UiLabel*label = [[UILabel alloc]init];
  label.frame = CGRectMake(40,60,50,30);
  label.backgroundColor = [UIColor redColor];
  label.text = @"Hello";
  [label sizeToFit]// it make the size of label fit with text size
  </code></pre>
  
  <p>Here is my rectangle in which i want to fit my label</p>
  
  <pre><code>UIView*rectangle = [UIView alloc]init];
  rectangle.frame = CGRectMake(40,60,50,30);
  </code></pre>