我有一些字符串名称,我想比较该字符串是否包含像“_thumb.png”这样的子字符串。
最佳答案
[string rangeOfString:string1].location!=NSNotFound
关于iPhone : How to check whether a substring exists in a string?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5565038/