UIViewController 的属性presentingViewController

来源:互联网 发布:汽车配件编号查询软件 编辑:程序博客网 时间:2024/05/11 02:39
// 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];

    }
0 0
原创粉丝点击