jspahrsummers / libextobjc

A Cocoa library to extend the Objective-C programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use synthesizeAssociation function?

jkyin opened this issue · comments

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

but, I got a error:
qq20151031-0 2x

Anyone can help me? Please....

You need to prefix synthesizeAssociation with an @ symbol, just like the built-in keywords.

qq20151103-0 2x

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.