in a previous project, I had to intercept url-calls from within an App on iOS to show the iOS App Store.
The repo on GitHub contains a simple web-export from SpiderBasic implemented into a Xcode-project. The two buttons are caught by iOS, and will present a Twitter, or Facebook-sharing controller.
It's easy to do:
1. Add (in test.sb)
Code: Select all
! window.location='http://twitter';
2. Export as web-project, including SpiderBasic-libraries.
3. Copy to the web-folder in Xcode-project
4. Add (in view controller.m), below // Callback for the web what you would like to intercept.
Currently, there is a twitter, and a Facebook call
Post you approved Apps here
And feel free to fork, and extend the code!
Have fun!
Cheers
Jörg
Edit: I removed my (only) GitHub-Repo. Please find the source-code zipped here: http://labor.joerg-burbach.de/extern/Sp ... master.zip
Repo on GitHub: removed