2014-07-11 38 views
0

我有一個UIWebView,我加載了一個url。但它不會加載完整的內容。我已經檢查了所有可能的解決方案論壇,但還沒有找到突破。任何幫助將非常感激?你可以自己試試下面的網址。基本上,該網址應該包含html5內容/播放器。UIWebView不會從url加載全部內容

-(void)loadPlayerUrl 
{ 
    activityIndicatorView.hidden = NO; 
    NSURL* nsUrl = [NSURL URLWithString:@"http://watch.nimbletv.com/tv"] 
    NSURLRequest* request = [NSURLRequest requestWithURL:nsUrl cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:30]; 
    [self.playerWebView loadRequest:request]; 
} 

但是,這在safari或任何其他瀏覽器中的完美作品。

+0

其中的部分內容無法顯示? – Raptor

+0

它只顯示標題。它應該加載一個html5播放器,但它不。 – Arun

回答

0

您應該創建ViewControllerWebPage 然後

- (void)viewDidLoad 
{ 
    [super viewDidLoad]; 
    self.screenName = @"Info Ekran"; 
    NSURL *mobileCreaURL = [NSURL URLWithString:@"http://mobilecrea.com/"]; 
    NSURLRequest *myRequest = [NSURLRequest requestWithURL:mobileCreaURL]; 
    [mobileCrea loadRequest:myRequest]; 

} 

還可以創建新的視圖,選擇新的自定義類(ViewControllerWebPage),比創建一個UIWebView

+0

它不會解決問題。 OP已經有'self.playerWebView',假設它是一個'UIWebView'。什麼是'self.screenName'用於? – Raptor

+0

創建故事板上的新屏幕,然後創建新的類,但ViewControllerWebPage的子類編寫代碼,並在故事板上連接您的課程 –

+0

OP可以加載部分網站。你仔細閱讀過這個問題嗎? – Raptor