我有一个想要访问Amazon.com的UIwebview,当我加载amazon.com时,它的格式与我从iphone safari那里去的格式不同.什么告诉像amamzon这样的网站重绘iphone?这是我的代码:
- (void)viewDidLoad { NSString *urlAddress = @"http://www.amazon.com/Inventive-Gadgets-Inc-PQFan-Professionally/dp/B000V8ASR6"; //Create a URL object. NSURL *url = [NSURL URLWithString:urlAddress]; //URL Requst Object NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; //Load the request in the UIWebView. [webView loadRequest:requestObj]; } - (IBAction) gotofourth{ [self dismissModalViewControllerAnimated:YES]; }
任何帮助都会很棒.
谢谢
您将要更改您的用户代理; 这是一个可能有用的现有问题:在UIWebView中更改用户代理(iPhone SDK)