JSON方法:
secdata = [NSString stringWithFormat:@"game_name=%@&game_desc=%@&start_date=%@",EGamename,Edescription,Estarttime,[NSNumber numberWithBool:YES]];
NSString *key = [NSString stringWithFormat:@"userid=%@&data=%@&step_name=%@&step_desc=%@&step_point=%@&hint_point=%@&hint=%@&step_location=%@&latitude=%@&longitude=%@&question=%@&answer=%@&options=%@&address=%@",useridpasstoeditgame,secdata,stepnameText.text,intotxt.text,steppointTxt.text,hintpenaltyTxt.text,hintText.text,locationTextfield.text,latitude,longitude,questionlbl.text,optionBlbl.text,locationTextfield.text,[NSNumber numberWithBool:YES]];
NSURL * url = [NSURL URLWithString:URL_PATH];
NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:url];
[request setHTTPMethod:@"POST"];
[request setHTTPBody:[key dataUsingEncoding:NSUTF8StringEncoding]];
connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
// this is for you to be able to get your server answer.
// you will need to make your class a delegate of NSURLConnectionDelegate and NSURLConnectionDataDelegate
myClassPointerData = [NSMutableData data] ;