Skip to content

Instantly share code, notes, and snippets.

@derektu
Last active December 10, 2015 02:38
Show Gist options
  • Save derektu/4368748 to your computer and use it in GitHub Desktop.
Save derektu/4368748 to your computer and use it in GitHub Desktop.
Identify controls without using IB to hook up IBOutlet
// 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