Hi eskimo,Thank you for your time and suggestion.I've also tried to run this part of code and finally I wrote the correct code.But though I'm new to Xcode, it'll be a great help if you look into the following code and suggest me if any further modification is required or not. Here I'm trying to fetch the input data from the two text fields in my app and try to send it to server side using POST method.Here is my updated code:-- (IBAction)loginAction:(UIButton *)sender{ NSMutableDictionary *post = [[NSMutableDictionary alloc]init]; [post setValue:self.userNameField.text forKey:@username]; [post setValue:self.passwordField.text forKey:@password]; NSArray* notifications = [NSArray arrayWithObjects:post, nil]; NSError *writeError = nil; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:notifications options:kNilOptions error:&writeError]; NSString *postLength = [NSString stringWithFormat:@%d,[jsonData length]]; NSMutableURLRequest *request = [[NSMutableURLRequest alloc]init]; [request setURL:[NSURL UR
Topic:
App & System Services
SubTopic:
Networking
Tags: