1
我有一個本地化的帶有英文和es本地化版本的AboutApp.xib文件,但即使手機的語言設置爲西班牙語,它也會加載英文版本。如何根據語言加載西班牙語版本?initWithNibName始終加載英文xib
// Make sure AboutApp View is allocated
if (self.aboutAppController == nil) {
AboutApp* aboutApp =
[[AboutApp alloc] initWithNibName:@"AboutApp" bundle:nil];
self.aboutAppController = aboutApp;
[aboutApp release];
}
[UIView beginAnimations: nil context: nil];
[UIView setAnimationDuration: 1.0f];
[UIView setAnimationTransition: UIViewAnimationTransitionCurlUp
forView: [self.view window] cache: YES];
[self presentModalViewController: self.aboutAppController animated: YES];
[UIView commitAnimations];
我認爲它可能與initWithNibName上的bundle參數有關,但即使在閱讀文檔之後,我也不知道如何設置它。 – progrmr 2009-10-10 22:09:57