a. in your view (which contains the label) define a handler for TouchesBegan
b. set the Tag property on your label so you can identify it c. if the TouchesBegan handler, check the tag to see if the touch was in your label (ie, ignore other touches) if you're still stuck I can probably generate a "real" example of this On Wed, Jun 13, 2012 at 12:09 PM, Chris_M <[email protected]> wrote: > > Thanks for the response! Yeah, I just want to make the UILabel object > tap-able and have something happen when it's tapped. Unfortunately I have a > mental block where Objective-C makes absolutely no sense to me whatsoever > (I > can't help it; just the mere sight of it makes my brain start to panic and > shut down). I don't know how to translate that Obj-C answer to C#/MT. How > do > I do that in MonoTouch without any of that Obj-C, IBOutlet stuff? > > > --Chris > > > jawbrey wrote > > > > if you just want to capture the touch event, you can do something like > > this > > (in Obj-C, but same idea applies to MT) > > > > > http://stackoverflow.com/questions/3169798/handling-touch-event-in-uilabel-and-hooking-it-up-to-an-ibaction > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/How-to-use-a-UILabel-as-a-button-tp4655352p4655356.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
