UIBarButtonItem is a button specialized for placement on a UIToolbar or UINavigationBar object. It inherits basic button behavior from its abstract superclass, UIBarItem. The UIBarButtonItem defines additional initialisation methods and properties for use on toolbars and navigation bars. There are some methods for customizing Appearance. Available in iOS 2.0 and later in UIKit.
A bar button item is a button specialized for placement on a UIToolbar
or UINavigationBar
objects. It inherits basic button behavior from its abstract superclass, UIBarItem
. The UIBarButtonItem
defines additional initialization methods and properties for use on toolbars and navigation bars.
iOS includes a number of system-provided items with specific icons, but developers can create custom items as well.
Note: UIBarButtonItem
is not a descendent of UIView
, so many common tasks like applying animations or transforms can be more difficult than you might expect.