Top "Uibarbuttonitem" questions

UIBarButtonItem is a button specialized for placement on a UIToolbar or UINavigationBar object.

How to set target and action for UIBarButtonItem at runtime

Tried this but only works for UIButton: [btn setTarget:self action:@selector(btnClicked:) forControlEvents:UIControlEventTouchUpInside];

ios objective-c iphone swift uibarbuttonitem
Change the font of a UIBarButtonItem

I have a UIBarButtonItem in my UIToolbar titled Done. Now I want to change the font from the default to "…

ios cocoa-touch uibarbuttonitem
Change position of UIBarButtonItem in UINavigationBar

How can I change the position of a UIBarButtonItem in a UINavigationBar? I would like my button to be about 5…

iphone objective-c uinavigationbar uibarbuttonitem
How to programmatically set action for barButtonItem in swift 3?

Here is what I used previously, var barButtonItem = UIBarButtonItem(image: backImgs, style: UIBarButtonItemStyle.plain, target: self, action: Selector("menuButtonTapped:")) But …

ios swift selector swift3 uibarbuttonitem
How big should a UIBarButtonItem image be?

I'm looking to create my own custom Sort By Date and Sort By Number buttons that I plan on placing …

ios uikit uibarbuttonitem uibaritem
add image to UIBarButtonItem using initWithImage:(UIImage *)image

I would like to know how to set an image to a UIBarButtonItem which will then be added to a …

iphone uibarbuttonitem
Swift Custom NavBar Back Button Image and Text

I need to customise the look of a back button in a Swift project. Here's what I have: Here's what …

ios swift uinavigationcontroller uikit uibarbuttonitem
How to create fixed space and flexible space bar button items programmatically?

I want to create UIBarButtonItems programmatically and place these fixed space items between buttons.

ios iphone xcode uibarbuttonitem
How do I hide/show the right button in the Navigation Bar

I need to hide the right button in the Navigation Bar, then unhide it after the user selects some options. …

ios objective-c uibarbuttonitem rightbarbuttonitem
UIBarButtonItem with custom image and no border

I want to create a UIBarButtonItem with a custom image, but I don't want the border that iPhone adds, as …

ios iphone uibarbuttonitem