Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ASIHTTPRequest を使用してセッション タイムアウトを設定するにはどうすればよいですか?
ありがとう
以下を使用して、ASIHttpRequest のデフォルトのタイムアウトを設定できます。
[ASIHTTPRequest setDefaultTimeOutSeconds:20];
それはあなたが探しているものですか?
ASIHttpRequest のインスタンスが与えられた場合、次を使用できます。
asiRequest.timeOutSeconds = 20;
これは、1 つの要求のタイムアウトをデフォルトから変更したいだけの場合に便利です。