jjzjj

iPhone : How to check whether a substring exists in a string?

我有一些字符串名称,我想比较该字符串是否包含像“_thumb.png”这样的子字符串。 最佳答案 [stringrangeOfString:string1].location!=NSNotFoundrangeOfString:文档。 关于iPhone:Howtocheckwhetherasubstringexistsinastring?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/question

iPhone : How to check whether a substring exists in a string?

我有一些字符串名称,我想比较该字符串是否包含像“_thumb.png”这样的子字符串。 最佳答案 [stringrangeOfString:string1].location!=NSNotFoundrangeOfString:文档。 关于iPhone:Howtocheckwhetherasubstringexistsinastring?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/question