以下代码拒绝编译,因为方法:“FollowPlayer”是具有类级别访问权限的类方法。如何正确允许 NSTimer 调用 +(void)FollowPlayer?
- (void)awakeFromNib{zombie_size=4; timer=[NSTimer scheduledTimerWithInterval: 1.0 target:self selector:@selector(FollowPlayer) userInfo:nil repeats: NO];}
+ (void)FollowPlayer: NSTimer{}