测试我的字符串是否包含特定的文件名

发布于 2024-10-26 22:00:46 字数 176 浏览 3 评论 0原文

我如何测试我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

思慕 2024-11-02 22:00:46

谷歌是你的朋友。您可能已经找到了例如这个

Google is your friend. You could have found e.g. this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文