Menu
  • HOME
  • TAGS

UILabel as subview of UIBarButtonItem.customView not dimming when presenting view controller

ios,uinavigationitem,rightbarbuttonitem,uibuttonbaritem

The best solution I could come up with was to disable the label when the modal view controller gets presented. When the modal get dismissed, I replace the toolbar menu item (by calling getCartBarButtonItemWithDelegate) again, with a fresh, enabled label. This way I didnt have to try and match the...

segue from multiple bar button items

ios,swift,uiviewcontroller,segue,rightbarbuttonitem

Create a segue from the controller (the one with the bar buttons) to the controller you want to segue to when the search button is touched. Call performSegueWithIdentifier:sender: in the "activate search" action method.

Add RightButtonItem to navigation bar when displaying tabbarcontroller views

ios,navigationbar,tabbarcontroller,rightbarbuttonitem

The reason you can't change the right bar button item is because only your tab bar controller is in the navigation controller stack. The view controllers only have access to the tab bar controller. So in order to have a custom navigation bar button, you have to add/set it in...

rightBarButtonItem seems to stack when moving from one viewController to another

ios,objective-c,cocoa-touch,rightbarbuttonitem

Just change the lines in viewDidLoad and sendTotalBackFromOrder: [self.navigationItem.rightBarButtonItem setCustomView:customItem]; for UIBarButtonItem *barBtn = [[UIBarButtonItem alloc] initWithCustomView:customItem]; self.navigationItem.rightBarButtonItem = barBtn; ...

setting the size of navigationbar icon ios

ios,uinavigationbar,rightbarbuttonitem

Create navigation bar icon in the following sizes: About 44 x 44 pixels About 22 x 22 pixels (standard resolution) more informtation you can find here https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/BarIcons.html...

Remove only one RightBarButtonItem

ios,uibarbuttonitem,navbar,rightbarbuttonitem

Just set one of them: [self.navigationItem setRightBarButtonItem:secondBarButton];...