Hi! I'm not a Objective-C dev (I'm not a very experienced dev at all) and I'm trying to implement Appirater in my Unity game but when I try to compile in XCode I'm getting this error:
I have XCode Version 5.0 (5A1413)
The lines with the error are:
"Semantic Issue: Instance variable '_delegate' accessed in class method"
+ (void)setDelegate:(id<AppiraterDelegate>)delegate{
_delegate = delegate;
}
+ (Appirater*)sharedInstance {
static Appirater *appirater = nil;
if (appirater == nil)
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
appirater = [[Appirater alloc] init];
appirater.delegate = _delegate;
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appWillResignActive) name:
UIApplicationWillResignActiveNotification object:nil];
});
}
return appirater;
}
Thanks for your time