Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

magga

macrumors regular
Original poster
May 14, 2009
145
8
Hi guys,

I have just started trying to make my own iPhone app after following some examples online and in books.

What I am trying to do is connect to an external API that returns XML. I am then trying to display certain values from the returned XML on screen.

The example I have for connecting to this API uses the curl function in php and sends various variables such as username, password and action.

The question is, how can I replicate this functionality in Objective C?

I've tried Googling this but haven't been very successful.

Any pointers in the right direction would be appreciated.

Thanks
 
Thanks for that, I took a look but it went a bit over my head to be honest.

I think I need to go over a load of the basics again!
 
I'd look at using NSURLConnection.

Yeah, this is exactly how I do it as well. In addition, I only get to really build apps on the weekends so I am constantly going back to the basics with the oddest things I run into. It is always worth it, especially if you are new to C to always be going back to basics to improve / make life easier.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.