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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -