Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone UIWebView警报不显示页面URL?_Iphone_Uiwebview - Fatal编程技术网

Iphone UIWebView警报不显示页面URL?

Iphone UIWebView警报不显示页面URL?,iphone,uiwebview,Iphone,Uiwebview,我正在我的应用程序中使用UIWebview,当出现错误时,它会显示一条警告消息 消息很好,但警报消息的标题显示页面URL,这没有帮助 不管怎样,你想摆脱它,改为显示自定义文本吗 感谢您的帮助。请查看UIWebViewDelegate协议的实现 -(void)webView:(UIWebView*)webView didFailLoadWithError:(NSError*)错误已定义。在那里,您应该使用-(id)initWithTitle:(NSString*)title message:(NS

我正在我的应用程序中使用UIWebview,当出现错误时,它会显示一条警告消息

消息很好,但警报消息的标题显示页面URL,这没有帮助

不管怎样,你想摆脱它,改为显示自定义文本吗


感谢您的帮助。

请查看
UIWebViewDelegate
协议的实现
-(void)webView:(UIWebView*)webView didFailLoadWithError:(NSError*)错误已定义。在那里,您应该使用
-(id)initWithTitle:(NSString*)title message:(NSString*)message delegate:(id)delegate cancelbuttontile:(NSString*)cancelbuttontile otherbuttontiles:(NSString*)otherbuttontiles设置一个
视图。但是,我不是在寻找加载错误。我想显示一条消息,但不一定是错误。UIWebViewDelegate中还有其他几种方法可用于在加载webview之前或之后进行反应。这可能对你有帮助。