Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding apps Document directory in iphone

I am using apps doc directory to save the database,i could not find where my doc dir is can anybody help me,i am using mac osx lion.Thanks in advance

like image 559
karthick Avatar asked May 05 '26 06:05

karthick


2 Answers

Do you want find iOS sandbox document directory?

Try this code

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 
NSString *documentsDirectory = [paths objectAtIndex:0]; 
like image 127
virushuo Avatar answered May 06 '26 19:05

virushuo


in Mac osx document directory is located in following path.

/Users/[username]/Library/Application Support/iPhone Simulator/5.0/Applications/[app-id]/Documents
like image 22
Ayaz Alavi Avatar answered May 06 '26 20:05

Ayaz Alavi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!