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 で、アクティビティは UIActivityIndicatorView です