1

私は iOS 開発が初めてで、最近は「ASIHTTPRequest」ライブラリを使用しています。ここから例をダウンロードしました 。それはうまくいっています。パラメータを「メール」としてWebサービスに送信する必要があり、認証も必要です。

このリファレンス[request setPostValue:@"abcd@gmail.com" forKey:@"email"];に基づいてフォローしてみ ました

しかし、それは私に警告を与えますInstance method -setPostValue:forKey() not found. 電子メール ID をパラメーターとして Web サービスに渡すにはどうすればよいですか? 参考までに、ユーザーがパスワードを忘れたときにWebサービスを使用してパスワードをリセットします。

編集 :

ここで、次のコードを電子メール ID パラメーターと認証を使用してASIFormDataRequestから変換する必要があります。ASIHTTPRequest今すぐ私を助けてくれますか?`

[self setRequest:[ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://abc.foo.com/api/forgot_password/"]]];
    [request setUseKeychainPersistence:[useKeychain isOn]];

[request setDelegate:self];
[request setShouldPresentAuthenticationDialog:[useBuiltInDialog isOn]];
[request setDidFinishSelector:@selector(topSecretFetchComplete:)];
[request setDidFailSelector:@selector(topSecretFetchFailed:)];
[request startAsynchronous];

`

4

1 に答える 1