我正在制作一个 iPhone 应用程序,其中我制作了一个自定义活动指示器类来显示另一个类的活动指示器动画,但我的问题是活动指示器类开始动画但它没有停止动画。
这是代码:
customActivityView = [[ CustomActivityIndicatorView alloc] init];
customActivityView.view.center = self.view.center;
[self.view addSubview:customActivityView.view];
[customActivityView.activityIndicator startAnimating]; // is work fine to add a custom activity indicator and start animating
[customActivityView.activityIndicator stopAnimating]; // but this line doesn't work