Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
- {
- CGRect frame1 = _widget_VW.frame;
- frame1.size.height = 60;
- _widget_VW.frame = frame1;
- [_widget_VW sizeToFit];
- if (navigationType == UIWebViewNavigationTypeLinkClicked) {
- NSLog(@"User tapped a link.");
- [_widget_VW sizeToFit];
- [_widget_VW setSuppressesIncrementalRendering:YES];
- CGRect frame = _widget_VW.frame;
- frame.size.height = 1;
- _widget_VW.frame = frame;
- CGSize fittingSize = [_widget_VW sizeThatFits:CGSizeZero];
- frame.size = fittingSize;
- _widget_VW.frame = frame;
- _VW_activity.hidden = NO;
- [_activityindicator startAnimating];
- [self performSelector:@selector(setup_DATA) withObject:_activityindicator afterDelay:0.01];
- return YES;
- }
- return YES;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement