我在每个单元格中都有一个带UIImageView的UICollectionView,现在我想添加Copy Callout,就像在Photos.app中一样:

我在UICollectionViewDelegate中看到了这个方法:
- (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath {
return YES;
}
Run Code Online (Sandbox Code Playgroud)
经过几分钟的研究后,我找到了UIMenuController类,据我所知,我必须使用它来获取菜单,但无论如何,我认为必须有更简单的方法然后创建UIGestureRecognizer,创建,定位等我的UIMenu.
我是在正确的轨道上吗?你怎么能实现这个功能?