开发者

Basic error, in coding please help

开发者 https://www.devze.com 2023-02-18 01:53 出处:网络
warning: property \'timerLevel3\' requires method \'-timerLevel3\' to be defined - use @synthesize, @dynamic or provide a method implementation
 warning: property 'timerLevel3' requires method '-timerLevel3' to be defined 
 - use @synthesize, @dynamic or provide a method implementation
开发者_如何学Go

I have 18 of these types of errors so any help would be appreciated

timerLevel3 = NS timer X 3 errors

the other errors are to do with ints> (score3 is an int)

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

Can you help please?


My guess is that the @interface members are sent messages to set values with out actually member variables synthesized. So, try in your @implementation giving -

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


   // .. method definitions, if exist any.


@end 
0

精彩评论

暂无评论...
验证码 换一张
取 消