I noticed my app is failing while running with Guided Access enabled.
Specifically,UIMenuController failed to create a popup menu on long touch
UIMenuController uim = UIMenuController.SharedMenuController;
//build menu items in list
uim.MenuItems = list.ToArray ();
//loc is location in View - loc=_gr.LocationInView (this.View); while _gr is a UILongPressGestureRecognizer
uim.SetTargetRect (new RectangleF (loc.X, loc.Y, 1, 1), this.View);
uim.SetMenuVisible (true, true);
I checked uim.MenuFrame is zero size frame
Otherwise the code works just fine if Guided Access is not enabled. I am running ios7 with app compiled with ios7 sdk. With ios6 menu works just fine.
Any ideas?