問題是網站沒有完全加載UIWebView,但它在Safari中正常加載。UIWebView在加載網頁時顯示錯誤,Safari完美顯示
這是裝載在一個UIWebView的網站時,我得到的錯誤:我嘗試以下鏈接的問題
Warning: cos_before_render(/home/user/ctown/doc_wbn//../sys/swt/www.westspringsec.moe.edu.sg.mob) [function.cos-before-render]: failed to open stream: No such file or directory in /home/user/ctown/cti_bin/wbn/cos_init.inc on line 731
Warning: cos_before_render() [function.include]: Failed opening '/home/user/ctown/doc_wbn//../sys/swt/www.westspringsec.moe.edu.sg.mob' for inclusion (include_path='.:/home/user/ctown/cti_bin/phplot:/usr/local/lib/php') in /home/user/ctown/cti_bin/wbn/cos_init.inc on line 731
Fatal error: Call to undefined function: json_encode() in /home/user/ctown/cti_bin/wbn/cos_init.inc on line 737
- (void)viewDidLoad {
NSString *urlAddress = @"http://www.westspringsec.moe.edu.sg";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[Webview loadRequest:requestObj];
[super viewDidLoad];
}
,但是我不能修改該網站的後臺!
UIWebView Xhmtl parse error but safari don't
好的謝謝,但用戶代理準確地意味着什麼?我總是看到它! – 2011-04-13 04:38:41