styles
styles

Reputation: 11

iPhone, trying to post a plist (NSDictionary) to a web service

Is there a simple way to package a plist object (NSDictionary, NSArray, etc.) and Post it to a web service?

Upvotes: 1

Views: 480

Answers (1)

Dave DeLong
Dave DeLong

Reputation: 243146

Sure; you can easily convert a plist object into XML using +[NSPropertyListSerialization dataFromPropertyList:format:errorDescription:] and then send the XML to your web service.

Upvotes: 1

Related Questions