+ (UIViewController *)getPresentVC
{
UIViewController *appRootVC = [UIApplication sharedApplication].keyWindow.rootViewController;
UIViewController *topVC = appRootVC;
if (topVC.presentedViewController)
{
topVC = topVC.presentedViewController;
}
return topVC;
}
网友评论