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的区别
猜你喜欢
转载自iaiai.iteye.com/blog/2147016
今日推荐
周排行