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]; 来解决兼容性问题 |
presentModalViewController和presentViewController的区别
最新推荐文章于 2023-02-27 18:51:59 发布