Is it possible to determine whether ViewController is presented as Modal?

后端 未结 14 2115
一生所求
一生所求 2020-12-04 07:13

Is it possible to check inside ViewController class that it is presented as modal view controller?

14条回答
  •  离开以前
    2020-12-04 07:39

    Best way to check

     if (self.navigationController.presentingViewController) {
             NSLog(@"Model Present");
        }
    

提交回复
热议问题