Question

I have this error in requesting data from api.. All I want is to get only the message "The request timed out." in NSLocalizedDescription. How to get that? heres the return error below.

Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0xa5bd490 {NSErrorFailingURLStringKey=api url, NSErrorFailingURLKey=api url, NSLocalizedDescription=The request timed out., NSUnderlyingError=0xa5763b0 "The request timed out."}

Was it helpful?

Solution

I solved already this problem issue...

NSString *getError = error.localizedDescription;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top