基本错误,在编码时请帮忙

时间:2011-03-19 20:58:45

标签: ios4 objective-c++

 warning: property 'timerLevel3' requires method '-timerLevel3' to be defined 
 - use @synthesize, @dynamic or provide a method implementation

我有18种这类错误,所以任何帮助都会受到赞赏

timerLevel3 = NS timer X 3 errors

其他错误与int有关> (score3是一个int)

warning: property 'score3' requires the method 'setScore3:' to be defined 
- use @synthesize, @dynamic or provide a method implementation

你能帮帮忙吗?

1 个答案:

答案 0 :(得分:1)

我的猜测是@interface成员被发送消息到设置值,实际上合成了成员变量。所以,试试你的@implementation -

@implementation className
   @synthesize timerLevel3 ;
   // .. So on for the other member variables too.


   // .. method definitions, if exist any.


@end