How to get path of a file in iOS?

Hi

iOS project I have added a file abg.jpg, Now I want to know the path of the image file when installed in iOS.

Pl let's know the code.

Thanks

View Answers

April 20, 2016 at 4:46 AM

Hi,

You can use following code:

NSString *filePath=[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"abc.jpg"];
NSLog(@"%@",filePath);

Thanks









Related Tutorials/Questions & Answers:
Advertisements