I have a UIWEBVIEW that connects to a "[email protected]&password=aaa"
Login .php uses these details to login to an external website and fetch and display its contents using CURL.
I have got my login.php to store the webpage into a folder "/cache/[email protected]" on my webserver.
I now need to find a way to tell Xcode / UI webview
If there is an internet connection: -Visit login.php -Download latest /cache/[email protected] and store local.
If there isnt an internet connection: -Load local '[email protected]' file.
I hope you understand,
I have looked at some systems out there such as: http://robnapier.net/blog/offline-uiwebview-nsurlprotocol-588
But that stores the file that your UIWEBVIEW visits which in my case is 'login.php'.
Thanks,
Jack.