While I think this is still a decent idea you may also want to refer to our instructions on how to integrate Mobile Web OSP with our open sourced iPhone app, iWVU.
Many schools want to have an iPhone app but aren't sure about where to invest time and resources (mobile web vs. iPhone app). I created a very simple (like not error checking simple) iPhone app that uses Mobile Safari to display your mobile website. So, in a sense, it's almost the best of both worlds. "Almost" because your mobile site won't be able to access hardware like the camera (but it can use the GPS!) so it doesn't qualify as a full-fledged app.
Seeing a Demo
Here is a demo on my Flickr account.
Getting the Code
The demo code can be found on GitHub.
Using the Code
You need to have the iPhone SDK installed which means you can only run this on an Intel-based Mac. Get the SDK on Apple's iPhone Developer site. Once you have that and you've grabbed a copy of the files (have no idea if this project will work on other people's machines) do the following:
- Open the project in XCode
- Open the MobileWebAppDelegate.m file
- Edit line #20 where it has http://m.wvu.edu to reflect your hostname
- Click 'Build & Go'
Up should pop the iPhone Simulator with a generic logo, generic start-up screen, a bit of white (a bug but normal) and then your site. Again, this is a proof-of-concept and obviously isn't finished. Just an interesting way to leverage your existing site while making it an iPhone app for the iTunes App Store.
Comments (0)
You don't have permission to comment on this page.