Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-01-2009, 02:28 AM   #3 (permalink)
peptides
New Member
 
Join Date: Feb 2009
Posts: 18
peptides is on a distinguished road
Default

Quote:
Originally Posted by RickMaddy View Post
Simple. Declare your "addAA" method like this:

Code:
- (void)addAA:(id)sender {
    UIButton *btn = (UIButton *)sender;
    // Do stuff with 'btn'
}
Thanks this worked perfectly!
Code:
- (IBAction)addAA:(id)sender {
    UIButton *btn = (UIButton *)sender;
    NSLog(@"The button title is: '%@'", [btn titleForState:UIControlStateNormal]);
}
peptides is offline   Reply With Quote
 

» Advertisements
» Online Users: 445
17 members and 428 guests
apatsufas, brainspoon, buenasuerte, CMSLdesign, Dimpleppanchal, dre, elhanche, Evilelement, Gaz, iOS.Lover, ketaskin, Kieren Harrold, LegionMD, MAMN84, MysticLine, Robiwan, Sami Gh
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,614
Threads: 94,086
Posts: 402,793
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kurtroom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:44 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.