file provider storage iphone not read in device but simulator works fine iOS swift
Problem:
I'm using filemanger to fetch the pdf file and save to document directory.I had tried in simulator it was working fine.In device it was not working.It returns data with nil value.Path will be as like below.
Solution:
/private/var/mobile/
After you fetch the pdf from file manager add the line below
url.startAccessingSecuritySc
Then only it will works fine in the device.
Comments
Post a Comment