Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Custom PageRenderer and default gesture recognizer (iOS)

$
0
0

When you create a custom renderer, default PageRenderer.ViewDidLoad implementation creates a gesture recognizer. This gesture recogniser prevents over views (that you add in your custom recognizer) to receive touch events.

For example, if you add a UIToolbar to the view you can't handle UIBarButtonItem Clicked events. As gesture recognizer is added behind the scenes someone can spend hours (my case) to figure out what's going on.

Why is it required to add this gesture recogniser and why does it prevent touch events for subviews?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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