Last active
December 10, 2015 02:38
-
-
Save derektu/4368748 to your computer and use it in GitHub Desktop.
Identify controls without using IB to hook up IBOutlet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// When there are many controls, you can identify each control by giving them an unique tag property | |
// and use the following code to locate the control | |
// | |
// Return the button with the specified ID (as tag) | |
// | |
- (UIButton*) getButton:(int)idButton | |
{ | |
return [self.view viewWithTag:idButton]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment