Questions tagged [backbarbuttonitem]
80 questions
1
vote
0 answers
iOS 11 NavigationBar back button issue
I set backbarbutton in a base ViewController viewDidLoad like below:
if (@available(iOS 11, *)) {
UIImage *backButtonImage = [[UIImage imageNamed:@"icon_return"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
…

acoder
- 249
- 5
- 14
1
vote
1 answer
reload collection view by press back bar button item
I have a collectionView in my app that when the user taps one cell of it, the collectionView will reload data, in detail, I have an album that it could contain another album when user choose one of them it shows albums inside of that.
Now I want…

Arash Etemad
- 1,827
- 1
- 13
- 29
1
vote
1 answer
Align the self.navigationItem.backBarButtonItem to left of the device in iOS
What I tried was, add an image to UIBarButtonItem and set that UIBarButtonItem as the default backBarButtonItem.
Below is my code;
UIImage *backNavImg = [[UIImage imageNamed:@"backward_navigation_arrow"]…

AnujAroshA
- 4,623
- 8
- 56
- 99
1
vote
2 answers
set navigation backBarButtonItem to go to specific UIViewController in Swift
I need the navigation's back button always pops a specific UIViewController.
override func viewDidLoad() {
super.viewDidLoad()
//set title image
var logoImage:UIImage = UIImage(named: "barra")!
var logoImageView : UIImageView =…

Chongzl
- 589
- 1
- 9
- 25
1
vote
1 answer
Popping View Controller Results in Odd navigationItem / backBarButtonItem Title Swap
Trying to update an app for iOS 8.
I have a set of UITableViews, we'll call them view #1, view #2, and view #3.
When passing from view #2 to view #3, I load view #3 and then pop view #2 off the stack.
In view #2, I am using this code:
// Load an…

Chris
- 5,485
- 15
- 68
- 130
1
vote
1 answer
Reduce width of BackBarButtonItem - Navigation Bar Title not centered
My navigation bar title is not centered because my BackBarButtonItem is too large.
I have tried to include this solution :
UIBarButtonItem *newBackButton =
[[UIBarButtonItem alloc] initWithTitle:@"NewTitle"
…

GoldXApp
- 2,397
- 3
- 17
- 26
1
vote
3 answers
navigationItem backBarButtonItem title
Having a issue with navigationItem backBarButtonItem title on a embedded UIViewController.
Im embedding UIViewControllers in scrollview for pagination, and i want to change the back button title for localization when i push something on the stack of…

Henrik B Hansen
- 45
- 6
1
vote
1 answer
Fix UIBarButtonItem dimming from a master controller
I've got a strange bug that I'm hoping isn't an OS issue. I have a split view controller and when I'm in landscape mode the back bar button items appear properly. However, when I reveal the master controller from portrait all of the bar button items…

Christian Di Lorenzo
- 3,562
- 24
- 33
1
vote
1 answer
hidesBackButton works but backbarbuttonitem setAction not working
I'd like to change action of my backbutton in one of my ViewController. Instead of going back to the precedent view, I want to perform an action in the same ViewController.
self.navigationItem.hidesBackButton=NO;
hides the BackButton but…

GoldXApp
- 2,397
- 3
- 17
- 26
1
vote
2 answers
Change backBarButtonItem color on current ViewController in iOS 6
I have a UINavigationController (with a UITableView) inside of a UIPopoverController. When I select a row in the table view I push to a new UIViewController. This view has a navigation bar with a back button. Inside the view there is a button. When…

Chris
- 1,005
- 1
- 13
- 27
1
vote
1 answer
set both backIndicatorImage and backIndicatorTransitionMaskImage on backbarbutton in IOS7 didnot show particular image
I searched all the topics about backbarbutton custom, but seems failed to find answers about my problem on backbarbutton.
To keep the property called interactivePopGestureRecognizer of UINavigationController, using leftBarButton to replace…

Jolin_D
- 11
- 1
- 3
1
vote
2 answers
UINavigation back bar button
I have a UITableViewController as the root view controller of a UINavigationController.
When the app launches, there is no back bar button on the navigation bar. However, when I click on one of the table view cells, and then click back, a back bar…

user1657563
- 237
- 4
- 13
1
vote
2 answers
How to customize back barbutton on EKEventViewcontroller
It tried the following code segment to customize the back bar button with my own button. This had no effect as it looked like default back button.
EKEventViewController*eventView = [[EKEventViewController alloc] initWithNibName:nil…

Madhu
- 253
- 1
- 8
- 21
1
vote
1 answer
UINavigationController - change back button to image
ΩI've been trying to do this for like an hour now, nothing seems to work:
Things I've tried:
1) Doesn't work.
UIImage *image = [UIImage imageNamed:@"scr1_button_topbar.png"];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button…

Lord Zsolt
- 6,492
- 9
- 46
- 76
1
vote
1 answer
Get title of backBarButtonItem
I'm currently writing an app with multiple users.
I would like to use the same "Profile" view in storyboard to display info for all the users.
The plan was to set the title of the "Profile" view and then push it.
- (void)…

thedp
- 8,350
- 16
- 53
- 95