Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

UIMenuController fails when Guided Access is on

$
0
0

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);

When invoked the menu doesn't show up. I checked in debugger, uim.MenuFrame is a 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

Any ideas?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>