iPhone: Text width in pixels
<p>I have UILabel (286, 50). When I set some text with font Helvetica 16, label divides text on 2 rows. Thats grate. Now I want to get this text width in pixels. </p>

<pre><code>CGSize uiLabelSize = CGSizeMake(286, 50);
return [text sizeWithFont:[UIFont fontWithName:@"Helvetica" size:16]
    constrainedToSize:uiLabelSize lineBreakMode:UILineBreakModeWordWrap].width;
</code></pre>

<p>But looks like this method dont want to divide this text on 2 rows. it returns for me 284 px.</p>

<p>Any idea how to be ?</p>

<pre><code> return [text sizeWithFont:[UIFont
    fontWithName:@"Helvetica" size:16]].width;
</code></pre>

<p>This method not work for me. Because if in first row last word is too long, than UILineBreakModeWordWrap will move last word on second row...</p>

<p>Sorry for hard explanation, let me know if I need to be more clear... </p>
