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.
我正在为一种类型的请求设置委托并实现 didReceiveData,但对于其他类型的请求,我只想能够设置 responseData,就像在常规情况下发生的那样。我该怎么做呢?
为您的函数使用“didReceiveData”以外的名称,并使用 request.didReceiveDataSelector = @selector(yourSelector); 当您创建需要 didReceiveData 信息的请求时。