ios7 - Different NSError localizedDescription between iOS 7 and 8 -


How was I testing how my app shows mismanagement when not connected to the Internet and I saw that iOS 7 And 8 different error messages return to NSURLErrorNotConnectedToInternet (-1009)

iOS 7 error

  Error domain = NSURLErrorDomain code = -1009 "Internet connection appears offline." UserInfo = 0x17d5edc0 {NSLocalizedDescription = Internet connection appears offline., NSUnderlyingError = 0x17ecdd20 "Inter Net connection appears offline. "}  

iOS 8 error

  error domain = NSURLErrorDomain code = -1009" action Can not be completed. (NSURLErrorDomain Error -1009.) "UserInfo = 0x1740f9c80 {_kCFStreamErrorDomainKey = 12, _kCFStreamErrorCodeKey = 8, NSUnderlyingError = 0x17405dd90" operation could not be completed. (KCFErrorDomainCFNetwork Error-2009.) "}  < / Pre> 

Is there a way to generate an error message from iOS that will be similar to both iOS 7 and 8?

Use the code, this is the same.

If they choose to update the error message in iOS8, you can not do anything.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -