UIBarButtonItemGroup$Methods extension

on

Properties

barButtonItems ↔ NSArray

Available on UIBarButtonItemGroup, provided by the UIBarButtonItemGroup$Methods extension

The bar button items associated with this group. Changing these items will affect the bar displaying these items without needing to re-set the groups that are in that bar. Any UIBarButtonItems that are already in group will be removed from that group.
getter/setter pair
displayingRepresentativeItem bool

Available on UIBarButtonItemGroup, provided by the UIBarButtonItemGroup$Methods extension

Returns YES if the representativeItem of this group is currently being displayed, rather than its barButtonItems.
no setter
representativeItem UIBarButtonItem?

Available on UIBarButtonItemGroup, provided by the UIBarButtonItemGroup$Methods extension

In order to display as many items as possible, bars that support UIBarButtonItemGroup may choose to collapse items associated with groups to the representativeItem specified by the group. A bar will only collapse groups that have a representativeItem set, but may still choose to use an alternate presentation of these items. A UIBarButtonItem may only be either the representativeItem or a member of the barButtonItems of a single UIBarButtonItemGroup and may only represent a single group. If the representativeItem has an action, then that action will be invoked, otherwise the bar will present a standard UI to allow selection of the barButtonItems in the representedItem's group.
getter/setter pair

Methods

encodeWithCoder(NSCoder coder) → void

Available on UIBarButtonItemGroup, provided by the UIBarButtonItemGroup$Methods extension

encodeWithCoder:
init() UIBarButtonItemGroup

Available on UIBarButtonItemGroup, provided by the UIBarButtonItemGroup$Methods extension

init
initWithBarButtonItems(NSArray barButtonItems, {UIBarButtonItem? representativeItem}) UIBarButtonItemGroup

Available on UIBarButtonItemGroup, provided by the UIBarButtonItemGroup$Methods extension

Create a new bar button item group with the given items. When bar button item layout is done, either the group's barButtonItems or its representativeItem is displayed (if it exists).
initWithCoder(NSCoder coder) UIBarButtonItemGroup?

Available on UIBarButtonItemGroup, provided by the UIBarButtonItemGroup$Methods extension

initWithCoder: