Created
March 25, 2014 23:25
-
-
Save adamyanalunas/9773674 to your computer and use it in GitHub Desktop.
Can I use objc_getAssociatedObject to read 3rd party ivars hidden behind @implementation?
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
@interface THObserver (RevealYourSecrets) | |
@property (nonatomic, strong) id block; | |
@end | |
@implementation THObserver (RevealYourSecrets) | |
@dynamic block; | |
- (id)block | |
{ | |
return objc_getAssociatedObject(self, @selector(block)); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment