Requests related to NSURLConnection delegation methods

I am developing an iPhone application that uses NSURLConnection to retrieve some network content. My iPhone app should work on iOS> = 4.1

(1) The following delegate methods are available in all iOS> = 4.1, including iOS5 (Beta). - (void) connection: (NSURLConnection *) connection didReceiveData: (NSData *) data; - (void) connectionDidFinishLoading: (NSURLConnection *) connection; - (void) connection: (NSURLConnection *) connection didFailWithError: (error NSError *);

The documentation mentions that these methods are "Available in iOS 2.0 through iOS 4.3" and are listed in the Deprecated NSURLConnection Methods section of the iOS5 documentation. (However, when I command + Click on these methods are listed in the Foundation framework section of the iOS5.0 library)

(2) When we call [cancel], the request is immediately canceled, or do we receive any callbacks when the request is actually canceled? Is it safe to issue an NSURLConnection_object right after the call is canceled?

Thanks and Regards, Deepa

+5
source share
1 answer

, . , NSURLConnectionDelegate, NSURLConnection doc. , . , IOS 5.

0

All Articles