objective c - Changing button titles from different .m files -
i writing code works in several languages. when user changes language need change screen prompts , button text. when in .m screen type:
[[self.tabbarcontroller.viewcontrollers objectatindex:1] settitle:@"setup"];
but how change prompts in other screens without having go each .m , make changes. assuming "self" can replaced allow me this.
it sounds you're trying use localized strings. might find right path: http://www.icanlocalize.com/site/tutorials/iphone-applications-localization-guide/
basically, instead of using strings @"setup"
you'll use this
[[self.tabbarcontroller.viewcontrollers objectatindex:1] settitle: nslocalizedstring("setup_button_title", "title setup button")];
Comments
Post a Comment