写了个例子,一直编译不过,后来确认gnustep不支持@property 和 @synthesize语法;
@property 和 @synthesize配对使用,用于生成setter和getter方法。
仅记录下。
stray '@' in program expected '=', ',', ';', 'asm' or '__attribute__' before XXX
猜你喜欢
转载自hailinhe1986-163-com.iteye.com/blog/1759256
今日推荐
周排行