不是你正在尋找的答案,但這是更多的建議你應該使用什麼。 我使用github link進行網絡相關活動。 他們有很好的文件,並非常容易使用(使用的塊)
NSDictionary *paramsDictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"user",@"client_id",@"password",@"new", nil];
[[YourAFHttpClientExtenstion sharedInstance] postPath:LOGIN_PATH parameters:paramsDictionary success:^(AFHTTPRequestOperation *operation, id responseObject) {
//handle success
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
// handle error.
}];
YourAFHttpClientExtenstion是延長AFHttpClient,並增加了共享實例的方法召集並實現initWithBaseUr:
你正面臨什麼問題?你有什麼嘗試? – CRDave
任何工作@iPatel –