I am inserting data from an iphone app to a server
participant_id="1";
NSString *post =[[NSString alloc] initWithFormat:@"participant_id=%@&question_id=%@&answer_text=%@&answer_option=%@",participant_id,question_id,answer_text,answer_option];
Using the above line with other code, Is it possible instead that NSString participant_id may pass int participant _id to server from this line
Sure, just use the
%dor%uformat specifier:See https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html for the full list.