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