smilingpoplar
smilingpoplar

Reputation: 1075

Disable js alert in UIWebView in ios7

I used to disable js alert in UIWebView by overriding

- (void)webView:(UIWebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame;

as mentioned by this answer.

Now with ios7&xcode5, the above code has the compile error: WebFrame: expected a type

There is no WebFrame anymore? Anyone know about this?

Upvotes: 0

Views: 3309

Answers (1)

wtl
wtl

Reputation: 332

Change WebFrame * to id or import the header from webkit.

Upvotes: 1

Related Questions