//
//  UIViewController+Extended.m
//  iFileReader
//
//  Created by LiDong on 13-3-30.
//  Copyright (c) 2013年 LiDong. All rights reserved.
//

#import "UIViewController+Extended.h"

@implementation UIViewController (Extended)

- (void)dismissPresentedViewControllerRecursively {
    UIViewController *presentedViewController = [self presentedViewController];
    
    if (presentedViewController) {
        [presentedViewController dismissPresentedViewControllerRecursively];
        [presentedViewController dismissViewControllerAnimated:NO completion:NULL];
    }
}

@end
