0

我将 UIMenu 添加到具有长标题的 UIButton.menu 中,但菜单显示不是全文。无论如何要更改它以显示全文?感谢帮助

 let _: [()] = (0...100).map {
            childdrens.append(UIAction(title: "This is a very very very very very very very very very long title \($0)", handler: {  _ in
            }))
        }
  longCapMenuButton = UIMenu(title: "", options: .displayInline, children: childdrens ) 
  longCapMenuButton.showsMenuAsPrimaryAction = true

截图附在下面 -

图片

4

0 回答 0