XCODE yükleniyor çubuğu (indicator ,scroll) yüklendikten sonra hidden gizleme.
NSString *mobilemenuUrl = [NSString stringWithFormat:@"http://www.google.com"];
NSURLCache *cache = [[NSURLCache alloc] initWithMemoryCapacity:1 diskCapacity:1 diskPath:nil];
[NSURLCache setSharedURLCache:cache];
NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:mobilemenuUrl]];
[_myWebView loadRequest:urlRequest];
//_myWebView.delegate = self;
_myWebView.backgroundColor = [UIColor whiteColor];
_myWebView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
_myWebView.scalesPageToFit = YES;
_myWebView.autoresizesSubviews = YES;
_myWebView.scrollView.bounces = NO; // (old) dot notation
_myWebView.multipleTouchEnabled = NO;
_myWebView.scalesPageToFit = NO;
- (void)webViewDidFinishLoad:(UIWebView *)myWebView {
[_spinningWheel stopAnimating];
_spinningWheel.hidden=TRUE;
}
- (void)webViewDidStartLoad:(UIWebView *)myWebView {
[_spinningWheel startAnimating];
_spinningWheel.hidden=FALSE;
}
Yükleniyor çubuğu (indicator,scroll) XCODE
4/
5
Oleh
Adsız