Reputation: 1388
We have used NSURLConnection for establishing the connection with the server. Can we differentiate between a connection failed or no response received from the server in an https connection in iOS 8(Xcode 6.3)? If yes, then please help us with this.
Upvotes: 1
Views: 146
Reputation: 3873
NSURLConnectionDelegate
method -connection:didFailWithError:
provides you with error describing reason for failure. You can differentiate between situations based on error.code
- list of codes here.
Upvotes: 1