iphone - Online MySQL database in Objective-C -
I am writing a game for the iPhone, and I want an online leaderboard using my SSL, which I I'm familiar. How do I apply this to my app? I think I need to get a frame / library?
You should summarize from DB technology, wrap your MySQL db with a simple web service and Runs on a web server, you can use standard HTTP requests from your app to interact with your database.
My suggestions (not the only way to do this in any way) ...
- Django (or some other simple web framework) to wrap your database model Use, you can ever make the Django code from your existing DB schema. / Li>
- Write a few basic ideas to modify your DB by using your basic POST calls and send username and score data in POST data
- Write a few simple pages, which will allow the data you want Returns an XML format that you can parse and display the app, but these are essentially just very simple web pages generated.
You now have a publicly accessible leaderboard server, which your app can interface with, posting scores and retrieving data through simple socket HTTP calls.
Comments
Post a Comment