0

I am developing an iOS project. There, I am having to upload images to to PHP server. So I choose some images from gallery in simulator for check up. Selected image is stored inside simulator. But I couldn't find that folder. So image is going empty to server. How to find that folders?

That image stored path is below

User/Guest/Library/developer/core simulator/devices/1ABD8156-4A55-4189--BDCD-DA6F7CSB2229/data/containers/data/applications/1559E24-9738-447D-8888-EEC9E29D4D39/Documents/Photo.jpg

But here I can found until

User/Guest/Library/developer/core simulator/devices/1ABD8156-4A55-4189--BDCD-DA6F7CSB2229/data/containers/data/applications/

How can I solve this. Please help me.

Note: i am using xamarin studio for development.

Soumya Ranjan
  • 4,817
  • 2
  • 26
  • 51
Indian
  • 23
  • 11

1 Answers1

0

This would get u the simulator directory.

[[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
Dheeraj Singh
  • 5,143
  • 25
  • 33