On my main storyboard I created an Activity Indicator.
I want to hide my activity indicator until the button has been pressed. Is there a way I can do that?
When I press the button the activity indicator starts animating.
self.indicator.hidden = NO;
[self.indicator startAnimating];
[self performSelector:@selector(showData) withObject:nil afterDelay:2.0f];
Can I hide the activity indicator until the button has been pressed, and then show this activity indicator?