Guest User

Untitled

a guest
Jul 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. - (void)webViewDidStartLoad:(UIWebView *)linkWeb {
  2.  
  3. UIActivityIndicatorView * activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
  4. [activityIndicator startAnimating];
  5. refreshActivity = [[UIBarButtonItem alloc] initWithCustomView:activityIndicator];
  6. [activityIndicator release];
  7. [refreshActivity release];
  8.  
  9. }
  10.  
  11. - (void)webViewDidFinishLoad:(UIWebView *)linkWeb {
  12. refreshActivity = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(reloadLink)];
  13. refreshActivity.style = UIBarButtonItemStylePlain;
  14. [refreshActivity release];
  15. }
Add Comment
Please, Sign In to add comment