UILabel: Using the userInteractionEnabled method on a label
Posted
by Kevin Bomberry
on Stack Overflow
See other posts from Stack Overflow
or by Kevin Bomberry
Published on 2009-04-30T19:37:54Z
Indexed on
2010/06/16
14:42 UTC
Read the original article
Hit count: 320
Hello again. I am wondering if anyone has used the userInteractionEnabled method on a UILabel to allow the label to act like a button (or just to fire off a method). Any help would be greatly appreciated. Cheers!
Update (4/30/09 @1:07pm) Clarification: I have a standard InfoButton and next to it I want to place a label with the text "settings" and I would like the label to function like the button (which flips over to a settings screen. So, basically I need to tie the already defined showSettinsView to the "infoLabel" label; a user clicks on the infoButton or infoLabel and the method fires off.
The infoButton is already working and is using an IBAction to trigger the method. I would like to know how to wire up the label to implement the same method. That is all. Cheers!
© Stack Overflow or respective owner