Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 72

AIR POWERed Apps
buzztouch Evangelist
Profile
Posts: 38
Reg: Oct 23, 2012
Southern Califo...
4,680
12/22/12 10:46 PM (13 years ago)

How to change top nav bar right button text

How do you change the Top Nav Bar Right Button text... i.e. from NEXT to LOGIN. Where exactly would the code be in xcode? Thanks
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
12/22/12 11:55 PM (13 years ago)
There's probably many ways to do that but I think this is the easiest: go to BT_viewUtilities.m (found in the BT_Layout group) I'm assuming you are displaying line numbers - if not you can enable them in Xcode > Preferences >Text Editing > Line Numbers on or near line 358 you will see this code - if([rightButtonType isEqualToString:@"next"]) theBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"next", @"Next") style:UIBarButtonItemStylePlain target:theViewController action:@selector(navRightTap) ]; Change it to this - if([rightButtonType isEqualToString:@"next"]) theBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"LOGIN", @"Next") style:UIBarButtonItemStylePlain target:theViewController action:@selector(navRightTap) ];
 
AIR POWERed Apps
buzztouch Evangelist
Profile
Posts: 38
Reg: Oct 23, 2012
Southern Califo...
4,680
like
12/23/12 09:16 AM (13 years ago)
Absentia, thanks for going out of your way to explain that. It worked for me. I'd like your post more than once if I could.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.