我想在UIWebView
点击按钮时重新加载(包括所有标签和图像).我怎样才能做到这一点?
- (void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; [webView reload]; }
要么
NSURL *theURL = [NSURL URLWithString:@"http://www.OurLovingMother.org/Mobile.aspx"]; [webView loadRequest:[NSURLRequest requestWithURL:theURL]]; }
- (IBAction)buttonClicked { [yourWebview reload]; }
希望这可以帮助