我試圖顯示一個UimenuController,但我無法查看它。我能怎麼做?Swift-設置可見菜單控制器
let MenuController: UIMenuController = UIMenuController.sharedMenuController()
MenuController.menuVisible = true
MenuController.arrowDirection = UIMenuControllerArrowDirection.Down
MenuController.setTargetRect(CGRectMake(100, 80, 50, 50), inView: self.view)
let MenuItem_1: UIMenuItem = UIMenuItem(title: "Menu", action: "delete:")
let MenuItems: NSArray = [delete]
MenuController.menuItems = MenuItems
需要調用方法setMenuVisible:(BOOL)menuVisible 動畫: (布爾)動畫UIMenuController – Sandeep 2014-10-09 08:05:36
我不知道,請舉一個例子 – 2014-10-09 20:17:51