I have an activity indicator that needs to be activated as soon as a button is clicked and then stopped after a conditional statement...
I've looked at ways online to implement this but all i can find is setting them with webviews not simply turning them on and then off again.... below is my basic problem
-(IBAction)SavePassword:(id)sender{
\\start animating activity indicator
if(post recieved no errors){
\\stop animating activity indicator
}
\\else{
return the user error
}
if anyone can help it would be awesome :)
it pretty straight forward... create an outlet and connect it in the interface builder..
@property(nonatomic, retain) IBOutlet UIActivityIndicatorView *activityIndicator;
in the implementation just use these two methods to start and stop the animation...
[self.activityIndicator startAnimating];
and
[self.activityIndicator stopAnimating];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With