views:

310

answers:

1

I have a localized AboutApp.xib file with English and es localized versions, but it always loads the English version even when I have the phone's language set to Spanish. How do I get it to load the Spanish version based on the language?

// 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];
A: 

I found the answer on macrumors forum. Just needed to do a Build Clean and a rebuild for it to recognize the localization of the xib.

progrmr