I am making an iPhone app in which I have made a custom activity indicator class to show an activity indicator animating on another class, but my problem is that the activity indicator class get start animating but it doesn’t get stop animating.
Here is the code:
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
Check that
customActivityView.activityIndicatoractually returns the activity view, or quite likely, if it returns anything at all.