Okay, I am using Interface Builder in Xcode 4.5.1 and just added a Pop Up Button to the window. If I click through I see "Item 1", "Item 2", "Item 3", which are editable. I was expecting to see something in the attributes or identity inspector that let me define how many of these items were in the menu, but there is nothing there. I've been looking at this for hours. Where can these be defined?
A pop-up button displays a menu of mutually exclusive options. After people choose an item from a pop-up button's menu, the menu closes, and the button can update its content to indicate the current selection.
A context menu (also called contextual, shortcut, and pop up or pop-up menu) is a menu in a graphical user interface (GUI) that appears upon user interaction, such as a right-click mouse operation.
Go to app > res > right-click > New > Android Resource Directory and give Directory name and Resource type as menu. Now, we will create a popup_menu file inside that menu resource directory. Go to app > res > menu > right-click > New > Menu Resource File and create a menu resource file and name it as popup_menu.
Alternatively referred to as a context menu and shortcut menu, a pop-up menu is a menu that is hidden and doesn't appear until you right-click. This menu is often referred to as a context menu because the options in the menu often relate to what was right-clicked.
It figures... just when I give up and try something else: The circular button on the lower right with the triangle let me "Show the document outline". Once here, the outline elements are editable, copy paste, change name etc.
So, under "Menu - OtherViews", the "Menu Item - ..." can be deleted or copy/pasted to add.
This took hours of my life that I will never get back, I hope someone else finds this tip useful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With