title: Get the NSString height in iOS 7
body: <p>I am using the below code to calculate the height of a label from string length. Im using xcode 5.0 and it works fine in iOS 6 simulator but it's not working well in iOS 7.</p>
  
  <pre><code>NSString* str = [[array objectAtIndex:i]valueForKey:@"comment"];
  
  CGSize size = [className sizeWithFont:[UIFont systemFontOfSize:15]   
   constrainedToSize:CGSizeMake(300, MAXFLOAT) lineBreakMode:UILineBreakModeWordWrap];
  
  Height_1 = size.height;
  </code></pre>
  
  <p>If there is any solution for iOS 7 then please help.
  Thanks in Advance</p>