Questions tagged [backbarbuttonitem]
80 questions
2
votes
2 answers
backBarButtonItem doesn't call action
I would like to call an action when my backButton is clicked but this doesn't seem to be it.
viewDidLoad in rootViewController:
self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc]
…

chikuba
- 4,229
- 6
- 43
- 75
2
votes
4 answers
How set set title to leftBarButtonItem
I have root ViewController and detailed ViewController. When i push to detailedViewController i get leftBarButtonItem with the title from the root one. But i want the title to be just "Back", nothing more. So how to do that?
This doesn't…

Buron
- 1,193
- 2
- 13
- 23
2
votes
0 answers
Text flipped in backBarButtonItem stack iOS
I have an issue with my app. the backBarButtonItem stack flipped when the application runs in the Arabic language.
I did not use any RTL function like CGAffineTransform(scaleX: -1.0, y: 1.0) in my app and just backBarButtonItem stack flipped.
any…

Fadi Abuzant
- 476
- 8
- 13
2
votes
0 answers
iOS 10 Back button width in NavigationBar
Problem: backBarButtonItem has extra space in iOS 10.
iOS 11
iOS 10
As you can see from images above. Back button in iOS 10 has an extra space.
According to this source
My implementation
In AppDelegate
…

Vitaliy Litvinov
- 298
- 4
- 13
2
votes
1 answer
Updating view A that was behind view B after the back button in the navigation bar is pressed and view B is popped
I have two views A & B in order to go from A to B I'm just pushing the new view, in view B I preform some actions that update the badgeValue of a UIBarButton item of my navigation bar. (Like adding an item to the shopping cart)
When I go back to…

Octavio Rojas
- 187
- 13
2
votes
2 answers
Back Bar Button Segue hides Toolbar
I am using a Show segue in my application.
Whenever I segue to another screen and press the back bar button, my navigationController.toolbar disappears.
I tried to get rid of it with
navigationController?.toolbar.hidden = false
in my…

JVS
- 2,592
- 3
- 19
- 31
2
votes
1 answer
Swipe gesture instead of backbarbuttonitem with UINavigationController
I've looked around and I can't for the life of me find a way to replace the backbarbuttonitem with a swipe gesture. I want to swipe left and have the app revert back to the previous view controller. Just to clarify I'm using a UINavigationController…

Ollie177
- 315
- 1
- 3
- 17
1
vote
1 answer
zoom bouncing + navigation bar back button click = app crash
today i crashed my app and i know why.
I have an UIViewController (class Picture) with an ScrollView and an ImageView on it.
@property (nonatomic, retain) IBOutlet UIScrollView *scrollview;
@property (nonatomic, retain) IBOutlet UIImageView…

Sharky
- 428
- 5
- 17
1
vote
1 answer
How to change back bar button's width of a UINavigationController in iPhone?
I have two table view controllers. Say TableViewController1 and TableViewController2.
I push TableViewController2 when someone clicks on the TableViewController1's cell.
I set the TableViewController1's clicked cell's value as the…

Confused
- 3,846
- 7
- 45
- 72
1
vote
1 answer
How to make UINavigationItem backBarButtonItem rectangular?
How can set self.navigationItem.backBarButtonItem of my RootViewController, so that the back button is rectangular instead of having a back arrow? I want to do this because I'm using a custom backBarButtonItem with an image of a grid of four squares…

ma11hew28
- 121,420
- 116
- 450
- 651
1
vote
1 answer
iOS13 navigation bar back bar button item tint color
I have a navigation bar embedded Search Controller. When Search Controller is dismissed, navigation back bar button item is reverting to default color(blue) only in iOS13.
Is there any way to fix this problem?
Here:
Gif

Kaan Ozdemir
- 165
- 2
- 9
1
vote
0 answers
iOS13 crash when back to ViewController with right navigationItem
My app running on iPad now, it has split viewController and masterVC is navigationViewController it has root UITableViewController and als has a right navigationItem.
ok crash step is .. here
On UISplitViewController touch tableViewCell on master…

San Gyeol Kang
- 110
- 9
1
vote
1 answer
How to set navigationBar back button image to default symbols?
there is one screen that i don't want to show back button symbols.
i create a empty image and change the navigation bar back button image.(code like following)
navigationController?.navigationBar.backIndicatorImage = UIImage(named:…

Peggy
- 372
- 1
- 6
- 27
1
vote
1 answer
How to play sound, when backBarButton (from NavigationController) is pressed? (for Swift)
Can't find out how to add playing sound, when back button in my NavigationController is pressed.
I have some VCs in NavigationVC. I didn't customise NavigationVC, but I've set back button for NavigationVC in the first VC on its stack. I'm trying to…

Nikita Goncharov
- 173
- 2
- 13
1
vote
1 answer
How do I get the back bar button item to show up in my navigation item in iOS?
I am not able to show a back bar button item in my navigation item in my root view controller of my navigation controller.
I have tried setting different properties.
Other questions like this do not give me an answer that works.
Her is my code in my…

daniel
- 1,446
- 3
- 29
- 65