Skip to content

Instantly share code, notes, and snippets.

@jparishy
Created June 5, 2013 21:59
Show Gist options
  • Save jparishy/5717662 to your computer and use it in GitHub Desktop.
Save jparishy/5717662 to your computer and use it in GitHub Desktop.

a.

    -(void)someOtherNewAction:(UIButton *)button;
    ...
    [self.button addTarget:self action:@selector(someAction:) forControlEvents:UIControlEventTouchUpInside];

c. Double click 'someAction', only the text becomes selected.

d. Start typing 'someOtherNewAction'

e. Click enter to complete 'someOtherNewAction:'

f. We now have @selector(someOtherNewAction::)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment