Asked
Active
Viewed 953 times
0

Arti
- 7,356
- 12
- 57
- 122
-
what do you want to change? You can set it on your storyboard – Cong Tran Dec 28 '15 at 11:37
-
Possible duplicate of [How do I change the title of the "back" button on a Navigation Bar](http://stackoverflow.com/questions/1449339/how-do-i-change-the-title-of-the-back-button-on-a-navigation-bar) – mkeremkeskin Dec 28 '15 at 11:37
-
2Check this http://stackoverflow.com/questions/28471164/how-to-set-back-button-text-in-swift – kb920 Dec 28 '15 at 11:38
-
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:@"Custom" style:UIBarButtonItemStyleBordered target:nil action:nil]; [self.navigationItem setBackBarButtonItem:backItem]; – Uma Madhavi Dec 28 '15 at 11:39
-
i just want to change title – Arti Dec 28 '15 at 12:02
2 Answers
0
you can use the following code if any error then tell me
-(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:YES];
UIBarButtonItem *flipButton = [[UIBarButtonItem alloc]
initWithTitle:@"Pending"
style:UIBarButtonItemStyleBordered
target:self
action:@selector(flipView)];
self.navigationItem.leftBarButtonItem = flipButton;
} -(void)flipView { }

Birendra
- 623
- 1
- 5
- 17
0
Try this,
let newBackButton = UIBarButtonItem(title: "SomeOtherTitle", style: UIBarButtonItemStyle.Bordered, target: self, action: "back:")
self.navigationItem.leftBarButtonItem = newBackButton;
func back(sender: UIBarButtonItem) {
self.popViewControllerAnimated(true, completion: nil)
}

Satheesh
- 10,998
- 6
- 50
- 93