I am programming in Obj-C with X-code and I want to create a project where I am able to pull up information from the database that I have created in my website.
I understand that this can be safely and easily done with a mobile web application. Any ideas how on how I parse the database with Objective-C and X-code ?
Please reply.
Thanks and regards,
-Venkat
If i’m not mistaken the iOS SDK can not connect directly to your database. The way I do this is to send out a post request using the ASIHTTP class and then parse the returned data from your website. Read the documentation here.
This is an example of how to use it from one of my own applications:
You then catch the result with the following code:
Don’t forget to include the required files and classes to your app. But it’s all explained in the documentation.
Hope it helps a bit!