标签: uicollectionview uicollectionviewcell uimenucontroller uimenuitem
我成功将自定义UIMenuItem添加到UICollectionViewCell的上下文菜单中。
使用内置操作(剪切/复制/粘贴)时,会调用-collectionView:performAction:forItemAtIndexPath:withSender委托方法。
-collectionView:performAction:forItemAtIndexPath:withSender
但是如果调用自定义操作,它永远不会被调用。是否有可能从UIMenuItem获取相应的UICollectionViewCell?
答案 0 :(得分:0)
以下是一个示例,请看一下这个http://paulsolt.com/2012/11/uicollectionview-custom-actions-and-uimenucontroller/