码迷,mamicode.com
首页 > 其他好文 > 详细

UIViewController 的属性presentingViewController

时间:2014-09-23 17:35:05      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:uiviewcontroller 的属性   ios presentingviewco   

// 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

标签:uiviewcontroller 的属性   ios presentingviewco   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!