Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

becu

macrumors newbie
Original poster
Hi,
I need to get the receiver (UIButton in this case), but all I have is the button's title. Do we have a method for this? Thanks.
 
It's not generically possible: there is nothing preventing two or more buttons on screen having the same title. You can easily get the top-level view on the screen and iterate through all sub-view (and their sub-views) checking the type and titles. I have to say though that if you need to do this you are almost certainly doing something the wrong way.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.