测试我的字符串是否包含特定的文件名
我如何测试我的 NSString 是否包含以下文件名: test.pdf
这是我的代码
NSString *pdfLocation = [documentDirectory stringByAppendingPathComponent:@"test.pdf"];
How can i test whether my NSString contains the following file name : test.pdf
This is my code
NSString *pdfLocation = [documentDirectory stringByAppendingPathComponent:@"test.pdf"];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谷歌是你的朋友。您可能已经找到了例如这个。
Google is your friend. You could have found e.g. this.
rangeOfString:options:range:
rangeOfString:options:range: