iOS判断是push还是present

iOS 判断是push还是present下面这种方法判断成功了
 if (self.presentingViewController)
  {
     [weakSelf dismissViewControllerAnimated:YES completion:nil];
   } 
  else {
      [weakSelf.navigationController popViewControllerAnimated:YES];      }

分享文章:iOS判断是push还是present
文章网址:http://ybzwz.com/article/gjdgps.html