こんにちは私はちょうどこれが正しいかどうかを知りたければ、この方法ではゼロを確認できますか?if(self.spinner==nil)
?はこのように正しい値をチェックしていますか?
おかげ
if (self.spinner == nil) {
self.spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
//.............needs work.............
CGRect center = [self.view bounds];
CGSize winCenter = center.size;
CGPoint pont = CGPointMake(winCenter.width/2,winCenter.height/2);
//CGPoint pont = CGPointMake(10,40);
[spinner setCenter:pont];
[self.view addSubview:spinner];
[self.spinner startAnimating];
} else {
[self.spinner startAnimating];
}