I now know how to write my event handler methods, which is very useful. I
haven't been able to get that Tag thing to work, though.

I also saw some sample MT code online where someone created a UIButton,
created a UILabel and added it as a subview to the button. That seems like
fun, if a little overkill, but I haven't had a chance to try it yet. 


--Chris


jawbrey wrote
> 
> 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
> 


--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/How-to-use-a-UILabel-as-a-button-tp4655352p4655404.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to