开发者

test if my string contains a specific file name

How can i test whether my NSString contains the following file name : test.pdf

This is my code

开发者_开发知识库
    NSString *pdfLocation = [documentDirectory stringByAppendingPathComponent:@"test.pdf"];


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


rangeOfString:options:range:

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜