2014-02-14 44 views
0

我嘗試使用Yahoo SDK開發應用程序。當應用程序顯示網址與網址:鈦Webview iOS不顯示Yahoo確認SMS安全

https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=.... 

然後我輸入我的用戶名和帳戶登錄。然後webview顯示確認SMS安全視圖。但是web視圖不顯示「確認」按鈕,如下圖:

alt text http://oi58.tinypic.com/2jecmra.jpg

我設置以下屬性設置爲我的WebView

var YahooWebView = Ti.UI.createWebView({ 
left : 0, 
    top : 0, 
    right : 0, 
    bottom : 0, 
    width : 320, 
    height : 568, 
    scalesPageToFit : true, 
    url : "http://example.com" 
}); 

我該如何解決這個問題呢? 謝謝。

回答

0

我得到了這個解決方案,我用雅虎手機登錄URL登錄,我設置雅虎api網址在「完成」參數。它重定向到雅虎API的應用程序授權。

var authPageURL = "https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=" + oauthToken; 
var yahooMobileLoginUrl = "https://login.yahoo.com/m?&.src=oauth&.lang=en-us&.intl=us&.done=" + authPageURL; 
YahooWebView.setUrl(yahooMobileLoginUrl);