// The view controller that presented this view controller (or its farthest ancestor.)
@property(nonatomic,readonly) UIViewController *presentingViewController NS_AVAILABLE_IOS(5_0);
a 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