Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何确定空格字符是否不止一次在 NSString 中?这似乎是一件简单的事情,但是在查看 NSString 方法时我找不到答案。
([string componentsSeparatedByString:@" "].count - 1) > 1