How to send json data in the Http request using NSURLRequest
Here’s what I do (please note that the JSON going to my server needs to be a dictionary with one value (another dictionary) for key = question..i.e. {:question => { dictionary } } ): NSArray *objects = [NSArray arrayWithObjects:[[NSUserDefaults standardUserDefaults]valueForKey:@”StoreNickName”], [[UIDevice currentDevice] uniqueIdentifier], [dict objectForKey:@”user_question”], nil]; NSArray *keys = [NSArray arrayWithObjects:@”nick_name”, @”UDID”, @”user_question”, nil]; NSDictionary … Read more