Hi, I have a UIBarButtonItem that I create with a UIMenu, and it's added to the navigation bar:
self.rightButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd menu: [self createMenuForAddItem]];
self.navigationItem.rightBarButtonItems = @[self.rightButton];
The menu shows fine when a user clicks on the bar button.
Now I want to also show this menu programmatically, for e.g if the user opens the app for the 5th time, the menu from the bar button item shows automatically, without the user having to explicitly press the button. How do I achieve this?