Created
December 2, 2015 17:06
-
-
Save nevyn/33077a013bb40c45cc5f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import <UIKit/UIKit.h> | |
@interface UIControl (GFNextResponder) | |
@property(nonatomic, unsafe_unretained) IBOutlet UIControl *gf_nextResponder; | |
@end |
This file contains hidden or 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
#import "UIControl+nextResponder.h" | |
#import <objc/runtime.h> | |
@implementation UIControl (GFNextResponder) | |
- (UIControl*)gf_nextResponder | |
{ | |
return objc_getAssociatedObject(self, "gf_nextResponder"); | |
} | |
- (void)setGf_nextResponder:(UIControl *)gf_nextResponder | |
{ | |
objc_setAssociatedObject(self, "gf_nextResponder", gf_nextResponder, OBJC_ASSOCIATION_ASSIGN); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment