UPDATE: The problem was solved by changing the user agent of Safari, following the instructions here:
http://www.mphweb.com/en/blog/easily-set-user-agent-uiwebview
I have a UIWebView which is adapted to a mobile style of a forum I have. In Safari, it looks and works great.
However, inside my UIWebView there is a major problem.
When quoting or editing a post, HTML is displayed inside of `BBcode`. Furthermore, posting code results in ignored line breaks. This problem will render my app completely unusable.
The webview is loaded like this:
This is how it looks inside of mobile Safari (correctly)
And finally, how it looks inside of `UIWebView` (incorrectly)
I am completely clueless as to what would cause this behavior.
http://www.mphweb.com/en/blog/easily-set-user-agent-uiwebview
I have a UIWebView which is adapted to a mobile style of a forum I have. In Safari, it looks and works great.
However, inside my UIWebView there is a major problem.
When quoting or editing a post, HTML is displayed inside of `BBcode`. Furthermore, posting code results in ignored line breaks. This problem will render my app completely unusable.
The webview is loaded like this:
PHP:
//display the webview
NSString *fullURL = @"http://www.mysite.com";
NSURL *url = [NSURL URLWithString:fullURL];
NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:url];
[_webTest loadRequest:requestObj];
This is how it looks inside of mobile Safari (correctly)

And finally, how it looks inside of `UIWebView` (incorrectly)

I am completely clueless as to what would cause this behavior.
Last edited: