Need help with UISearchBar and NSString

Posted by guydor on Stack Overflow See other posts from Stack Overflow or by guydor
Published on 2010-05-02T16:33:46Z Indexed on 2010/05/02 16:37 UTC
Read the original article Hit count: 226

Filed under:
|
|

Hi,

I would like to make an if command that checks the value of my UISearchBar in that way if the value of the UISearchBar is equals to " " or multiple spaces without words and chars, an alert will popup. Well, I don't need help with the creation of the alert but I do need help with the if command and the spaces. I know how to do it with multiple "if" command but I want with only 1.

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about nsstring