Currently I\'m working on a multi-language application and I want to change the Cancel
,Use
and Retake
button titles of the UIIm
Just find and change text of UIButton
-(void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
for (UIView *v in viewController.view.subviews)
{
if ([v isKindOfClass:[NSClassFromString(@"CMKBottomBar") class]])
{
SEL se = NSSelectorFromString(@"cancelButton");
if ([v respondsToSelector:se])
{
UIButton *cancelButton = [v performSelector:se];
[cancelButton setTitle:@"New title" forState:UIControlStateNormal];
}
}
}
}