0
我正在使用以下代码来扩展Web视图委托。iPhone - 扩展UIWebViewDelegae协议
@protocol CustomWebViewDelegate <UIWebViewDelegate>
@optional
-(void)touchesEnded;
@end
在我的课,我实现Web视图代表:
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
- (void)webViewDidFinishLoad:(CustomWebView *)webView
- (BOOL)webView:(CustomWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:
我的接口声明如下:
@interface BrowserView : UIViewController <UITextFieldDelegate, UIWebViewDelegate, UIScrollViewDelegate, CustomWebViewDelegate>
的问题是,它不是调用Web的代表视图。为什么? 我的代码错在哪里?
是的,我设置web视图的委托为好。 – Satyam 2012-01-17 07:15:27