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

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -