开发者

NSMutableArray with file path

开发者 https://www.devze.com 2023-01-10 13:22 出处:网络
I have a NSMutableArray of names of files in my app documents folder. Now I want to make an array of file paths of those files which have names in the above array.

I have a NSMutableArray of names of files in my app documents folder. Now I want to make an array of file paths of those files which have names in the above array. How am I gonna do this? I'm having trouble solving this a开发者_StackOverflownd I couldnt think of any solutions. If you could help, I really appreciate it. Thanks a lot in advance.


NSString *filename = [someArray objectAtIndex:i];
filename = [[NSBundle mainBundle] pathForResource:@"someImage" ofType:@"jpg"];
0

精彩评论

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