你是说怎么监听到点击了 webView 网页上的按钮,跳转到另一个页面吗? 把 webView 的delegate设成self,然后有个回调函数: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
见 http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebViewDelegate_Protocol/index.html shouldStartLoadWithRequest方法
你是说怎么监听到点击了 webView 网页上的按钮,跳转到另一个页面吗?
把 webView 的
delegate设成self,然后有个回调函数: