在非控制器(controller)类中拿到当前的设备上显示的controller
- (UIViewController *)getCurrentVC { UIViewController *currentController = [UIApplication sharedApplication].keyWindow.rootViewController; while (currentController.presentedViewController) { currentController = currentController.presentedViewController; } return currentController; }