I search it on forum, but i didn't find nothing.
This code will change back button Title, instead using name of previus page
Nav is the navigation controller; You can change "Back" with what you want
This code will change back button Title, instead using name of previus page
B4X:
Dim na As NativeObject = Me
na.RunMethod("ChangeTitle::",Array(nav,"Back"))
#If OBJC
- (void)ChangeTitle: (UINavigationController*) nav : (NSString*) Title{
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] init];
barButton.title = Title;
nav.navigationBar.topItem.backBarButtonItem = barButton;
}
#End If
Nav is the navigation controller; You can change "Back" with what you want
Last edited: