Hi All,
Need help. When a user click on a UIButton (myButton), I link it to my getUpdate event. This linkage is down via IB through the Touch Up Inside.
Things work fine and my event gets call when user tap on the button.
However, I have a question. In my event, I need to show the myActivityIndicatorView when I am update data from a website.
However, the getUpdate function below did not show the myActivityIndicatorView at all. I believe this function is not suppose to work this way but I have no clue how it should (delegate it, etc...)
Can any one help?
My .H file
@interface MyUpdateController : UIViewController {
IBOutlet UIActivityIndicatorView * myActivityIndicatorView;
IBOutlet UIButton *myButton;
}
- (IBAction)getUpdate

id)sender;
@end
My .M file
-(IBAction) getUpdate

id)sender {
[myActivityIndicatorView startAnimating];
// do all the things I want that takes 30-60 seconds to complete
[myActivityIndicatorView stopAnimating];
return;
}