首页 > 其他 > 详细

UIViewController 的属性presentingViewController

时间:2014-09-23 16:42:56      阅读:484      评论:0      收藏:0      [点我收藏+]
// The view controller that presented this view controller (or its farthest ancestor.)
@property(nonatomic,readonlyUIViewController *presentingViewController NS_AVAILABLE_IOS(5_0);

present b,b present c   。 现在要从c中直接回到a

if ([self respondsToSelector:@selector(presentingViewController)]) {
        [
self.presentingViewController dismissViewControllerAnimated:YES completion:NULL];

    }

UIViewController 的属性presentingViewController

原文:http://blog.csdn.net/u010241322/article/details/39498879

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!