An interface for adding and removing menus from a menu system.
SDKs
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
Framework
- UIKit
Declaration
protocol UIMenuBuilder
Overview
You don't create a menu builder object. Instead, you override build
in your app delegate or view controller to receive a builder object. Where you override this method determines the system that the builder updates. To add and remove menus from the menu bar using the main
menu system, override build
in your app delegate. To build a context menu using the context
system, override the method in your view controller.
To see an example of how to use a menu builder object, see Adding Menus and Shortcuts to the Menu Bar and User Interface.