Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

objective-C ERROR_CODE_TIMEOUT value

I am currently trying to set up an nsurlconnection I almost have everything sorted however.. One of the things I am having to declare is a constant error code timeout value as shown below.

else if (error != nil && error.code == ERROR_CODE_TIMEOUT)

My question is what value should I put into this constant value?

like image 421
C.Johns Avatar asked Jul 27 '26 10:07

C.Johns


1 Answers

You don't have to define it, only make sure that you're importing Foundation, like this:

#import <Foundation/Foundation.h>

Also, the correct constant is:

NSURLErrorTimedOut
like image 180
Fernando Madruga Avatar answered Jul 29 '26 02:07

Fernando Madruga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!