How to get path of a file in iOS?

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:
How to get path of a file in iOS?
How to get the full path location using <input type=file>
Advertisements
How to get the browsed file path into controller bean using JSF icefaces
How to get full path of the uploaded file using commons fileupload jar file
How to get project path
How to get project path
how to get the image path when inserting the image into pdf file in jsp - JSP-Servlet
How to store url path in file ?
how to get the image path when inserting the image into pdf file in jsp - JSP-Servlet
PHP Get Absolute Path
Java file absolute path
how to get java path name
File path for jar file
How to change uploaded file root path ?
how to upload multiple files in jsp and saving the path in database and the file in folder
Java get Absolute Path
How to retrieve file name and path of an excel spreadsheet imported into Oracle Database
File Path compare in java
Java Construct File Path
How to create file and save it into user defined path using jsp/servlet?
need solution to get file name from path which should give by user
PHP hide file path
Problem in getting file path in js
ModuleNotFoundError: No module named 'file-path'
how to get description for each file
how to get file extension in java
Java Get File Name
Getting path name of uploading file in struts 2.8.1
Constructing a File Name path
Java Get Class path
How to give path to the Dfile?
How To Get the Uploaded File Information in the Receiving Script?
Storing content from file path to an array
how to set class path
about Detail file path where to store application.
Getting path name of uploading file in struts 2.1.8
Getting File path error - JSP-Servlet
Java example to get the execution path
How to store url path?
Java program to get the desktop Path
downloading file through a file's path stored in database in jsp
how to find jdk path in ubuntu?
Constructing a File Name path in Java
How could we get log file as simple text format
How to use Java Path class?
How to get xml file form http port using web service
How to find unweighted Path with Less weighted path in java?
How to get of lastmodified file list between two times in java?
JDOM Element Example, How to get text of element of xml file.
Java file get name

Ads