I got my uiwebview working and displaying the specified url. the only problem is that the webpage that comes up is not the mobile webpage but the normal webpage. The same url in mobile safari opens the mobile version of the webpage but in my app it opens the normal version. Anyone know a reason for this? I am using storyboard if thats any help
Here is a snippet of my code:
NSURL *url = [NSURL URLWithString:website];
[webview loadRequest: [NSURLRequest requestWithURL:url]];
UIWebViewdoes not send the same browser header as Safari, thus the web-server does not know which page to serve you app.You could add an custom header to try and fix the problem.