Skip to content

Instantly share code, notes, and snippets.

@fousa
Created July 23, 2012 18:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fousa/3165150 to your computer and use it in GitHub Desktop.
Save fousa/3165150 to your computer and use it in GitHub Desktop.
Localize NSError
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