我想通过以下方式本地化 stringWithFormat:
NSString *string = [NSString stringWithFormat:@"Login %d in",2013];
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@string, nil)
message:@"Message"
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:@"sure", nil];
[alertView show];
我也在 Localizable.string 中写了这个:
"Login %d in" = "LOGIN %d IN";
它不起作用。你能帮我吗?谢谢...