IOS开发 获取当前视图所在的类名

        NSString *stringClass = NSStringFromClass([(UINavigationController *)self.window.rootViewController topViewController].class);

原文地址:https://www.cnblogs.com/keepcrazy/p/3844815.html