我很难找到NSURLConnection委托方法实现的任何示例。NSURLConnection委托方法
我想通过点击按钮发送带有HTTP帖子的数据。不知道如何制作“提交”屏幕和“提交”。 (我知道如何使用微调,并将使用它们)
我使用此代码根据botton单击操作,但无法使用任何委托的东西。不知道如何用我目前的设置来实现它们。
NSMutableURLRequest *request =
[[NSMutableURLRequest alloc] initWithURL:
[NSURL URLWithString:@"http://myURL.com"]];
[request setHTTPMethod:@"POST"];
NSString *postString = [wait stringByAppendingString:co];
[request setValue:[NSString
stringWithFormat:@"%d", [postString length]]
forHTTPHeaderField:@"Content-length"];
[request setHTTPBody:[postString
dataUsingEncoding:NSUTF8StringEncoding]];
//[[NSURLConnection alloc] initWithRequest:request delegate:self];
[NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
[SVProgressHUD dismissWithSuccess:@"Submission Successful"];
第二个链接,portugese一个真的很有帮助,即使我不明白protugese,谢谢.. – Bhimbim 2017-07-17 09:23:56