1

我成功地将自定义 UIMenuItems 添加到 UICollectionViewCell 的上下文菜单中。

使用内置操作(剪切/复制/粘贴)时,-collectionView:performAction:forItemAtIndexPath:withSender会调用委托方法。

但如果调用自定义操作,它永远不会被调用。从 UIMenuItem 获取相应的 UICollectionViewCell 是否有任何简单的可能性?

4

1 回答 1

0

这是一个例子,看看这个http://paulsolt.com/2012/11/uicollectionview-custom-actions-and-uimenucontroller/

于 2013-09-02T05:59:35.913 回答