iOS 判断是push还是present

时间:2017-01-20 21:00:20   收藏:0   阅读:365
iOS 判断是push还是present下面这种方法判断成功了
 if (self.presentingViewController)
  {
     [weakSelf dismissViewControllerAnimated:YES completion:nil];
   } 
  else {
      [weakSelf.navigationController popViewControllerAnimated:YES];      }


本文出自 “雪花飞落满人间” 博客,请务必保留此出处http://smengxiang.blog.51cto.com/11204872/1893460

原文:http://smengxiang.blog.51cto.com/11204872/1893460

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!