2011-03-19 70 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