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:
//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)
What could possible be changing the way it renders between mobile safari vs UIWebView
? I thought the point was their supposed to look the same!