I am a newbie to iOS, I have a created a textfield and imageView in a ViewController. I want user of app to select an image or a file(.txt,.csv, etc)into the App. I know that Apple provides UIImagePicker to select images from the device. with these I added an image to my imageView.
Now I want to Know that is there any way to select files from the device and use it into application. Or else Open file system of device and select the file ?
When I Googled it, I got that you are not able to open the file system. So how can I implement this functionality in iOS app?
There is no way of selecting file from file system into application. You can only access files from
There are multiple ways from which you can select files of different types other than images are
So create one UIButton
like "Select File" and open UIActionSheet
on tap of it. UIActionSheet
will have options like
And you can call respective actions on each index
.