我有uiwebview,我想防止重新加載當前的網址,當我從縱向更改方向風景,反之亦然。UIWebView阻止重新加載時,interfaceorientation更改
你有什麼想法嗎?
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
website.delegate = self;
[self home];
}
- (void)home {
// Create a URL object
NSURL *isuURL = [NSURL URLWithString: @"http://www.example.com"];
// URL Request Object
NSURLRequest *requestObject = [NSURLRequest requestWithURL:isuURL];
// Load the request in the UIWebView
[website loadRequest:requestObject];
}