As far as I know, this would work in Objective-C:
self.window.rootViewController.class == myViewController
How can I check if the current v
You can easily iterate over your view controllers if you are using a navigation controller. And then you can check for the particular instance as:
if let viewControllers = navigationController?.viewControllers {
for viewController in viewControllers {
// some process
if viewController.isKindOfClass(MenuViewController) {
println("yes it is")
}
}
}