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?
You don’t have to define it, only make sure that you’re importing Foundation, like this:
Also, the correct constant is: