Last active
October 10, 2021 04:34
-
-
Save johnhatvani/9404803 to your computer and use it in GitHub Desktop.
Objective-c runtime fun -- A UIButton that takes a block as an action. The cool thing it does is it adds this action as an instance method at runtime.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UIButtion+BlockAction
Simple easy to use UIButton category that allows you to add an action as a block. The category utilises the Objective-c runtime to add a method and implementation to the UIButton instance.
Usage: