Questions tagged [uimenu]

50 questions
0
votes
1 answer

Remove tab-related functions from Window menu?

I'm customizing the menus in my Mac Catalyst app. I've added two items, as you can see in the following screen shot ("Set Window Size" and "Open Separate Document Viewer"). But I want to get rid of the default menu items that appear between these…
arlomedia
  • 8,534
  • 5
  • 60
  • 108
-1
votes
1 answer

Can't run the lookup menu right from iOS?

I have one question. The look up menu displayed when text is selected I wonder if there is no way to run it right away. Please refer to the screenshot below. screenshot No matter how much I look for, I don't know. I've only found a UIMenuIdentifier…
Allen Kim
  • 3
  • 2
-1
votes
1 answer

UIButton and Temporary UIMenu

Can you change whether a UIButton has a UIMenu or not depending on external conditions? let infoButton = UIButton() infoButton.showsMenuAsPrimaryAction = true infoButton.menu = UIMenu(options: .displayInline, children:…
Gizmodo
  • 3,151
  • 7
  • 45
  • 92
-2
votes
1 answer

How to have an initial state with no option selected with UIButton (popup/pulldown button)?

I have this particular code let genderOptions = ["Male".localized, "Female".localized] .map { UIAction(title: $0, state: .off, handler: {_ in }) } genderButton.changesSelectionAsPrimaryAction = true genderButton.menu = UIMenu(children:…
Burhanuddin Sunelwala
  • 5,318
  • 3
  • 25
  • 51
-4
votes
1 answer

Programmatically click on a menu item

var menuList = [ UIAction(title: "title1", handler: { (action: UIAction) in self.myAction(action) }), UIAction(title: "title2", handler: { (action: UIAction) in self.myAction(action) }), UIAction(title: "title3", handler: { (action:…
zs2020
  • 53,766
  • 29
  • 154
  • 219
1 2 3
4