soorej babu soorej babu - 1 year ago 66
iOS Question

Error 404. Not found

Error 404. Message not found............

Answer

You can convert NSString to NSData by using

NSString* str = @"mystring";
NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding];
NSMutableData *yourdata = [data mutableCopy];

hope it helps you :)