objective c - uiwebview sometimes load the fileURLWithpath sometimes not -
i loading pdf file documents folder using [nsurl fileurlwithpath:strurl]
loads pdf not , giving error
error domain=nsurlerrordomain code=-1100 "the requested url not found on server." userinfo=0x16ff0b40 {nserrorfailingurlstringkey=file:///var/mobile/applications/0c7aff53-2328-4c19-b0eb-58edc7e20b61/documents/31oct14-05:17:13pm.pdf, nserrorfailingurlkey=file:///var/mobile/applications/0c7aff53-2328-4c19-b0eb-58edc7e20b61/documents/31oct14-05:17:13pm.pdf, nslocalizeddescription=the requested url not found on server., nsunderlyingerror=0x16ff3570 "the requested url not found on server."}
i have tested both in ios7 , ios8 devices. unable solve issue. please guide me through. thanks
its happening because in ios 8 on every run of app directory name changes , making path using nshomedirectory
.
and uiwebview
not finding right path file exitst.
objective-c iphone uiwebview
No comments:
Post a Comment