objective c - How do I find out if the space character is in a NSString more than once? -
how find out if space character in nsstring more once? seems simple thing while looking through nsstring methods couldn't find answer.
([string componentsseparatedbystring:@" "].count - 1) > 1
Comments
Post a Comment