How to get UIMenuController work for a custom view?
I'm trying to get the following code work: UIMenuController * menu = [UIMenuController sharedMenuController]; [menu setTargetRect: CGRectMake(100, 100, 100, 100) inView: self.view]; [menu setMenuVisible: YES animated: YES]; The menu instance is ready but it doesn't show - the width is always zero. Or is there some sample code on this UIPasteboard/UIMenuController topic? krasnyk I was not able to get it working even when I read all of your answers. I'm presenting ready code that will work for everyone. Let's say we have a controller class named Controller. You can simply paste the following