stray '@' in program expected '=', ',', ';', 'asm' or '__attribute__' before XXX

写了个例子,一直编译不过,后来确认gnustep不支持@property 和 @synthesize语法;

@property 和 @synthesize配对使用,用于生成setter和getter方法。

仅记录下。

猜你喜欢

转载自hailinhe1986-163-com.iteye.com/blog/1759256