Showing posts with label nsdata. Show all posts
Showing posts with label nsdata. Show all posts

Monday, June 11, 2012

Convert UTF-8 encoded NSData to NSString


I have UTF-8 encoded nsdata from windows server. I want to convert it to nsstring for iphone. Since data contains characters(like degree symbol) which have different values on both platforms, how do I convert data to string.

Saturday, February 25, 2012

NSPropertyListSerialization returns nil when trying to convert NSDictionary to NSData


I'm trying to convert an NSDictionary to NSData to store in core data, but I am getting a nil value returned to me. error states 'Unknown format option' after the call.

Friday, February 24, 2012

creating an http body with construction method


I am trying to create a http body that I am going to pass in using NSURLRequest post. I have my connection class all set up.

how to encode a UInt32 scalar type into a NSData object


I am currently creating this NSData object. I would like to put in sever different objects that are of type NSString and UInt32. I know how to put a NSString into my NSData object, but I don't know how to do this with a UInt32 scalar type.