iOS判断当前ViewController是push还是present方式显示的

2025-04-29 16:19:08
推荐回答(1个)
回答1:

NSArray *array = self.navigationController.viewControllers;
if(array.count == 0) {
// 当前视图present过来的
}