Skip to content

Instantly share code, notes, and snippets.

@onlyyoujack
Created January 23, 2013 03:11
Show Gist options
  • Save onlyyoujack/4601546 to your computer and use it in GitHub Desktop.
Save onlyyoujack/4601546 to your computer and use it in GitHub Desktop.
UIButton remove all target-actions
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