-1
我想在我的UIWebView加載一個頁面時顯示一個UIImageView,並在加載完成後隱藏。當webView加載時隱藏imageView?
我ViewController.h:
@interface FindViewController : UIViewController {
IBOutlet UIImageView *image;
IBOutlet UIWebView *webView;
}
我ViewController.m:
@implimentation
-(void)viewDidLoad {
}
if (!webView.loading) {
image.hidden = NO;
} else {
image.hidden = YES;
}
然而,它沒有做任何事情!我怎樣才能做到這一點?