首页 > 代码库 > 获得APP当前显示的viewController

获得APP当前显示的viewController

UIViewController* topViewController = ((UINavigationController*)self.window.rootViewController).topViewController;

 

获得APP当前显示的viewController