现在的位置: 首页 > 综合 > 正文

UIViewController 的属性presentingViewController

2017年12月09日 ⁄ 综合 ⁄ 共 363字 ⁄ 字号 评论关闭

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

    }

抱歉!评论已关闭.