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

2025-04-30 00:28:43
推荐回答(1个)
回答1:

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