Skip to content

Instantly share code, notes, and snippets.

@Fykec
Forked from onlyyoujack/gist:4601546
Created February 8, 2014 07:07
Show Gist options
  • Save Fykec/8877819 to your computer and use it in GitHub Desktop.
Save Fykec/8877819 to your computer and use it in GitHub Desktop.
Call removeTarget:action:forControlEvents: pass nil for the target, NULL for action, and use a control mask that sets all bits (UIControlEventAllEvents). Something like this:
[someControl removeTarget:nil
action:NULL
forControlEvents:UIControlEventAllEvents];
https://developer.apple.com/library/ios/#documentation/uikit/reference/UIControl_Class/Reference/Reference.html
http://stackoverflow.com/questions/3340825/uibutton-remove-all-target-actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment