扫码关注官方订阅号
附上URL
小伙看你根骨奇佳,潜力无限,来学PHP伐。
你是说怎么监听到点击了 webView 网页上的按钮,跳转到另一个页面吗?
把 webView 的delegate设成self,然后有个回调函数:
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方法
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你是说怎么监听到点击了 webView 网页上的按钮,跳转到另一个页面吗?
把 webView 的
delegate设成self,然后有个回调函数:见 http://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebViewDelegate_Protocol/index.html
shouldStartLoadWithRequest方法