gpt4 book ai didi

iphone - ASIHTTPRequest 和 userInfo

转载 作者:行者123 更新时间:2023-12-03 20:19:51 27 4
gpt4 key购买 nike

根据ASIHTTPRequest网站:

If your requests are all of the same broad type, but you want to distinguish between them, you can set the userInfo NSDictionary property of each request with your own custom data that you can read in your finished / failed delegate methods.

如何设置用户信息?

NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
ASIFormDataRequest *request = [[ASIFormDataRequest alloc] initWithURL:url];
[request setDelegate:self];
[request startAsynchronous];

最佳答案

request.userInfo = [NSDictionary dictionaryWithObjectsAndKeys: dataObject, key, nil];

关于iphone - ASIHTTPRequest 和 userInfo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2342041/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com