I am using NSLocalizedString function to change the language of a UIButton
reset.titleLabel.text=NSLocalizedString(@"Reset", nil);
I put this line in the viewDiLoad
, viewWillAppear
, viewDidAppear
, viewDidDisappear
and viewWillDisappear
when the View load , the localized version of the text appear , when I click on the button the text change back to the original text that is on the button in the Storyboard and then return to the localized language again right before loading the following view (even the the titlelable never changes values all across these stages!)
I saw that one of the solutions is to have a localized version of the Storyboard but I don t want to do that yest since I will have to maintain all localized versions ... any other solution ?