2013-06-18 12 views
0

下載的網頁中選擇,任何幫助將不勝感激。如何確定輸入字段的用戶已經從我曾嘗試沒有成功下列服務器

UIPasteboard *pb = [UIPasteboard generalPasteboard]; 

[pb setString:passwordName]; 

NSString *jScriptString; 

jScriptString = [NSString stringWithFormat:@"var output = {document.getElementById;" " ;output.innerHTML = document.activeElement.value = '%@'}", passwordName]; 


[self.viewWebSite stringByEvaluatingJavaScriptFromString:jScriptString]; 

回答

0

只是猜測這裏,但是當你的UIWebView加載頁面,你可以添加一個.js文件,您的本地iOS應用,增加了一個方法的onfocus在DOM中找到的每個輸入字段。然後你就可以有一個onfocus事件通過window.location屬性,它webView的元素ID傳上來到iOS:shouldStartLoadWithRequest:navigationType:可以監控。

相關問題