-
-
Save mutekinootoko/b58c2dc8d8502d5df390 to your computer and use it in GitHub Desktop.
Localize NSError
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSMutableDictionary *userInfo = [NSMutableDictionary dictionary]; | |
[userInfo setObject:@"You are not authenticated." forKey:NSLocalizedDescriptionKey]; | |
NSError *error = [NSError errorWithDomain:@"mydomain" code:0 userInfo:userInfo]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment