Questions tagged [backbarbuttonitem]

80 questions
0
votes
3 answers

How can I change the backBarButtonItem colour in Swift?

I am trying to change the default backBarButtonItem colour to white colour, my codes look like below self.navigationItem.backBarButtonItem?.tintColor = UIColor.whiteColor() But It is not working for me, any ideas?
0
votes
1 answer

back navigation bar doesn't hides on iPhone 6

I need to hide backBarButton, so I am using override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) self.navigationItem.setHidesBackButton(true, animated: false) self.navigationItem.backBarButtonItem?.title =…
0
votes
2 answers

How to remove and add back the "back button" on navigation bar

My view controller have a back button show on navigation bar(in a UINavigationController). There is a "edit" mode in current view. When into "edit" mode, I replace the leftBarButtonItem to a "Cancel" button, when exit the "edit" mode, I want to…
0
votes
1 answer

change the title of a backButtonItem in swift

I´m just a beginner in Swift and i don´t get it. Why doesn't change the title of my backBarButtonItem after the push segue? I tried it with this code in the viewDidLoad: navigationItem.backBarButtonItem?.title = "Back" Can somebody help me?
Tom Kuschka
  • 463
  • 1
  • 8
  • 17
0
votes
1 answer

BackBarButtonItem in iOS8 can't change tintColor?

I have called [[UIBarButtonItem appearance] setTintColor:XXX] in my AppDelegate. But I find the backBarButtonItem doesn't change its tintColor when the other barItems have changed to right color. Is't a bug only in iOS8 beta5?
Bayonetta
  • 116
  • 7
0
votes
2 answers

How to get the method of backBarButtonItem of navigationItem?

I have add the navigationItem.backBarButtonItem when turn to the new page like the following code , but I want to add a Timer for change some image before turn back to the first by backBarButtonItem. UIViewController *ReconnectView =…
Martin
  • 2,813
  • 11
  • 43
  • 66
0
votes
1 answer

Create a back bar button programmatically

I'm trying to create a back bar button programmatically, similar to the iOS 7 default back button. But when I add my back bar button to the navigation item. The Chevron plus is missing. How can I achieve this?
skyler
  • 742
  • 1
  • 10
  • 24
0
votes
2 answers

How to make a custom UIBarButton for Left Bar Button for BackBarButton

I am trying to customize UI of an application for iOS 7. I want exactly BackBarButton of iOS 7 but with different color for both arrow and title and different font for title. This is iOS 7 back button. I tried to customize it with following code …
aakpro
  • 1,538
  • 2
  • 19
  • 53
0
votes
1 answer

iOS 7 Navigation Bar Back Button Title change upon Language change

When the user change language settings from the app then I want to change the title of the back button to that language.How to do that?
0
votes
0 answers

iOS 7 change backbarbuttonitem text

I would like to remove the backbutton text on iOS 7 so that it is empty and I only have the arrow. Any suggestions someone?
simon
  • 111
  • 1
  • 4
0
votes
4 answers

Pop controller after back bar button is pressed

I have a UINavigationController ans a chain of 3 simple controllers. Each one has a button. When press a button a next controller is Pushed. ViewController1 -> ViewController2 -> ViewController3. When I push a back button on the 3rd view i want to…
0
votes
2 answers

ios - Not adding backbutton to NavigationBar on ViewController

I can not add on NavigationBar backbutton. I want to perform this operation on a ViewController, I have tried different ways, but could not reach a solution. Do you need to use Backbutton NavigationController to use, or you can perform on a…
0
votes
1 answer

Custom button in leftBarButtonItems to function as backBarButtonItem

I am using leftBarButtonItems to group a negativeSeparator (to get rid of padding and align my custom button to the edge of the screen) and a custom UIBarButtonItem: [navigationItem setLeftBarButtonItems:@[negativeSeperator, leftButton]]; How do I…
artooras
  • 6,315
  • 9
  • 45
  • 78
0
votes
2 answers

Hide back button in MWPhotoBrowser navigationcontroller

I am using MWPhotoBrowser in my ARC project. Everything is working fine. I want to hide back button. In performLayout() function, I tried below code to hide back button but its not working. self.navigationController.navigationItem.backBarButtonItem…
0
votes
1 answer

Where does this backBarButtonItem come from again?

I have a UINavigationController (A) which has a few subviews which also are UIViewControllers (B and C). The main UINavigationController (A) rides inside of a UITabViewController (D). I'm trying to push a view controller within…
Brett
  • 4,066
  • 8
  • 36
  • 50