How can i obtain the text of a UIButton in my
-(IBAction)clicked:(id)sender
method?
Thanks
How can i obtain the text of a UIButton in my
-(IBAction)clicked:(id)sender
method?
Thanks
What about this:
- (IBAction)clicked:(id)sender {
UIButton *button = (UIButton *)sender;
NSString *buttonTitle = button.currentTitle;
}
© 2022 - 2024 — McMap. All rights reserved.