所以用的话做版本判断:
if ([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0) { nextVC.modalPresentationStyle=UIModalPresentationOverCurrentContext; }else{ self.modalPresentationStyle=UIModalPresentationCurrentContext; } [self presentViewController: nextVC animated:YES completion:nil];