Regarding “didFailWithError” and “connectionDidFinishLoading“
Can they both be called? Or its always one or the other?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, they cannot be called at the same time.
After the delegate receives a message
connection:didFailWithError:, it receives no further delegate messages for the specified connection.If the connection succeeds in downloading the request, the delegate receives the
connectionDidFinishLoading:message. The delegate will receive no further messages for the connection and theNSURLConnectionobject can be released.http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html