How to use synthesizeAssociation function?
jkyin opened this issue · comments
Jack Yin commented
Here is my class;
.h
#import <UIKit/UIKit.h>
@interface UIView (TFUmengAnalytics)
@property (nonatomic, copy) NSDictionary *tf_umengDictionary;
@end
.m
@implementation UIView (TFUmengAnalytics)
synthesizeAssociation(UIView, tf_umengDictionary);
@end
Anyone can help me? Please....
Justin Spahr-Summers commented
You need to prefix synthesizeAssociation
with an @
symbol, just like the built-in keywords.
Jack Yin commented
Thank you @jspahrsummers , it works. But why there isn't syntax highlighting for synthesizeAssociation
. And also I cannot use command+click to jump to define.
Justin Spahr-Summers commented