presentModalViewController支持5.0,而presentViewController支持5.0以下
你可以
if (SYSTEM_VERSION_LESS_THAN(@"5.0")) {
[self presentModalViewController:self.childVC animated:YES];
} else {
[self presentViewController:self.childVC animated:YES completion:nil];
}
或直接使用
[self presentViewController:self.childVC animated:YES completion:nil];
来解决兼容性问题