I have data that I store in a database server somewhere.
I want to access this data from my iphone.
How do I connect to a database server using objective-c?
As a side question, I’m not sure which database to use so recommendations on that subject would be welcome as well.
There are many ways to store data in IOS each with its own benefits and drawbacks. I recommend reading through the IOS Core Data Programming Guide to find out the fundamentals about them.
IOS’s Managed Object Model is very powerful so you should have a thorough read of those sections, it allows you to have object representations of all entities within your persistent store (database).
Apple have also released an in-depth tutorial that makes use of the Managed Object Model and tools which you can find here