How to show/hide UIImageView when I want.
Posted
by
Madness64
on Stack Overflow
See other posts from Stack Overflow
or by Madness64
Published on 2011-01-31T14:48:56Z
Indexed on
2011/01/31
23:25 UTC
Read the original article
Hit count: 180
I'm having a little problem with an iPhone app I'm currently developing. When the user touch a button, it calls an IBAction named refreshQuestion, which is supposed to show an image hover the screen to ask the user to wait a moment, then it has to call another function, and finally it has to hide the image.
The problem is that the image won't appear. As well as the network activity indicator.
Any help?
Here is the code :
- (IBAction)refreshQuestion:(id)sender{
pleaseWait.hidden = NO;
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
[self loadData];
pleaseWait.hidden = YES;
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
}
© Stack Overflow or respective owner