开发者

test if my string contains a specific file name

开发者 https://www.devze.com 2023-02-19 20:44 出处:网络
How can i test whether my NSString contains the following file name : test.pdf This is my code 开发者_开发知识库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"];


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


rangeOfString:options:range:

0

精彩评论

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

关注公众号