if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0) {
web.modalPresentationStyle=UIModalPresentationOverCurrentContext;
}else{
web.modalPresentationStyle=UIModalPresentationCurrentContext;
}
[self presentViewController:web animated:NO completion:^{
}];
加上这句代码就可以了