I want to show a UIMenuController with custom actions when the user long pressed on a cell in the collection view which is embedded in container view.
I have implemented as mentioned in this stack overflow solution which is working fine. Copy Callout in UICollectionView
The problem I have now is menu items are coming below the cell even though I kept the arrow direction to UIMenuControllerArrowDown.
My collection view is part of a container view which is inside a view controller. When I press on an image in the collection view, it is showing the menu item on the bottom of the cell. How can I show it on the top?
I tried to show it in a particular view as below, but my effort got no use.
[menu setTargetRect:cell.bounds inView:parentControllerView];
Can someone suggest how I can resolve this problem? Let me know if my question is not clear or needs more details.