2011-03-19 36 views
0
warning: property 'timerLevel3' requires method '-timerLevel3' to be defined 
- use @synthesize, @dynamic or provide a method implementation 

我有这些类型的错误18所以任何帮助,将不胜感激基本误差,在编码请帮

timerLevel3 = NS timer X 3 errors 

其他错误做整型>(score3是一个int)

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

你能帮忙吗?

回答

1

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

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


    // .. method definitions, if exist any. 


@end 
+0

对不起后果可能是一个愚蠢的问题事后,警告现在被删除。我只是觉得int不应该被合成在.m文件中,因为某些原因... – user667680 2011-03-19 22:06:31