iPhone SDK - How to Tell if a Text Field Has Text?
<p>Sorry for the simple question but I feel like there's a smarter way to do this:</p>

<pre><code>if ([txtFldTo.text length]&gt;0){ 
    //do something
}
else {
    //do something else
}
</code></pre>

<p>where txtFldTo is an IBOutlet UITextField connected to a text field on the interface.</p>
