soorej babu soorej babu - 6 months ago 10
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 :)