我正在使用 coocs2d 并且在评论时出现标题错误。我将 UIKit 导入到我的标题中。
-(void)timerLoad:(NSTimer *)timer {
timer = [NSTimer scheduledTimerWithTimeInterval:(1.0/2.0) target:self selector:@selector(timerLoad:) userInfo:nil repeats:YES];
if (loadingBar.loading) { //error
[activity stopAnimating];
}
else {
[activity startAnimating];
}
if (loadingBar.loading = NO) { //error
activity.HIDDEN = YES; //thanks ;)
}
}
loadingBar 是一个 CCProgressTimer 并且 activity 是一个 UIActivityIndicatorView