天天看点

iOS禁用webivew的alert

-(void)webview:(uiwebview *)webview didfailloadwitherror:(nserror *)error{

    [self

finishload];

webviewloading];

}

- (void)finishload

{

    [[uiapplication

sharedapplication] setnetworkactivityindicatorvisible:no];

    [self.hud

stopanimationwithloadtext:@""

withtype:yes];//加载成功

禁用、、、、、、

    [self.webview

stringbyevaluatingjavascriptfromstring:@"document.documentelement.style.webkituserselect='none';"];

stringbyevaluatingjavascriptfromstring:@"document.documentelement.style.webkittouchcallout='none';"];

继续阅读