I have an application with In-App Purchase, that when the user buy something, download one html file into the Documents folder of my app.
Now I must check if this HTML file exists, so if true, load this HTML file, else load my default html page.
How I can do that? With NSFileManager I can’t get outside of mainBundle..
Swift 3:
… gives you a file URL of the documents directory. The following checks if there’s a file named foo.html:
Objective-C: