[MonoTouch] Buttons on an ImageView contained within a ScrollView - Buttons events aren't firing

Dimitris Tavlikos jimitav at gmail.com
Thu Oct 27 07:17:43 EDT 2011


By default, the UIImageView has UserInteractionEnabled=false. Try setting it to true.

Dimitris Tavlikos
Software Developer
Email: jimitav at gmail.com
Twitter: http://twitter.com/#!/dtavlikos
Blog: http://software.tavlikos.com






On 27 Oct 2011, at 2:16 PM, MilkyJoe wrote:

> I have a image of a map (of sorts) that contains a handful of "hot spots", or
> clickable points of interest. The user needs to be able to zoom and scroll
> around on the map image. So..
> 
> I have a series of UIButtons that are subviews of a UIViewImage (the map)
> that is itself a subview of a UIScrollView. Everything renders as expected
> (i.e. the buttons are resizing with the map image). However, the button
> TouchDown events aren't firing. I assume the UIScrollView's events are
> hiding the events its subviews?
> 
> Does anyone know what I need to do to make the buttons clickable within the
> UIScrollView?
> 
> Thanks
> 
> --
> View this message in context: http://monotouch.2284126.n4.nabble.com/Buttons-on-an-ImageView-contained-within-a-ScrollView-Buttons-events-aren-t-firing-tp3943974p3943974.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch



More information about the MonoTouch mailing list