set parameter in Array (for Request parameter in webservice)
——————————————————————
NSMutableArray *arrParameter=[NSMutableArray alloc]init];
arrParameter=…
set Array by assign value like Textfield/ String/ Dictionary etc., in array assign multiple record also.
Array set in dictionary for giving key name for value
——————————————————————————————————————
NSMutableDictionary *dic_Parameter=[[NSMutableDictionary alloc] init];
[dic_Parameter setObject:arrParameter forKey:@“Param1”];
[dic_Parameter setObject:string/array forKey:@"Param2”];
here second line is for pass second array or other key value like EmailID,other Array value etc..
Convert parameter value (your requested parameter) to Json
—————————————————————————————————————————
Final : perform operation on response like give any popup for adding success Records, pop to super view , move to any next view -pushview
set parameter in Array (for Request parameter in webservice) —————————————————————— NSMutableArray *arrParameter=[NSMutableArray alloc]init]; arrParameter=…
—————————————————————————————————————— NSMutableDictionary *dic_Parameter=[[NSMutableDictionary alloc] init]; [dic_Parameter setObject:arrParameter forKey:@“Param1”]; [dic_Parameter setObject:string/array forKey:@"Param2”]; here second line is for pass second array or other key value like EmailID,other Array value etc..
—————————————————————————————————————————————————————— NSError error = nil; NSData data = [NSJSONSerialization dataWithJSONObject: dic_Parameter options:0 error:&error];
—————————————————————————————————————————
—————————————————————————————————————————
NSURLResponse response = nil; NSData returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
—————————————————————————————————————————
————————————————————————————————————————— Final : perform operation on response like give any popup for adding success Records, pop to super view , move to any next view -pushview