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."}
I solved already this problem issue...
NSString *getError = error.localizedDescription;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With