HOW TO GET BUTTON SUBVIEW(SUBVIEW ALSO A BUTTON) CURRENT TITLE

24 views
Skip to first unread message

rama krishna

unread,
Sep 27, 2012, 2:59:48 AM9/27/12
to iphonesdkd...@googlegroups.com
HI Friends,
i am working on a game Application.in my application i have a button,that button again have button as subview.
how to get the currenttitle of that subview button.

Thanks.


Regards:

RamaKrishna t

Jesse Tayler

unread,
Sep 27, 2012, 10:56:34 AM9/27/12
to iphonesdkd...@googlegroups.com
typically when you wire up a button there is a :sender argument which is the button calling the method.

so, you can say something like 

sender.title

etc.

make sense?



--
You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
To post to this group, send email to iphonesdkd...@googlegroups.com.
To unsubscribe from this group, send email to iphonesdkdevelop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonesdkdevelopment?hl=en.

Jonathan Querubina

unread,
Sep 27, 2012, 11:52:24 AM9/27/12
to iphonesdkd...@googlegroups.com
For(uibutton *button in yourbutton.subviews){

Nsstring *title = button.title;

}

Sent from my iPhone

rama krishna

unread,
Sep 28, 2012, 1:32:44 AM9/28/12
to iphonesdkd...@googlegroups.com
thank you,got It through fastEnumeration..

Regards:

RamaKrishna t

Reply all
Reply to author
Forward
0 new messages