In a UIWebView's delegate method webView:shouldStartLoadWithRequest:navigationType:
, I put an NSAssert
there, but it just output a log, instead of terminating. Here is my code:
- (BOOL)webView:(UIWebView *)webView
shouldStartLoadWithRequest:(NSURLRequest *)request
navigationType:(UIWebViewNavigationType)navigationType
{
NSAssert(NO,@"assertion in delegate");
return YES;
}
and the output:
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: assertion in delegate