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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -