Created
July 23, 2012 18:17
-
-
Save fousa/3165150 to your computer and use it in GitHub Desktop.
Localize NSError
This file contains 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