I am getting viewControllers on navigationController stack as follows. Now I need to check if controller on top is one of known vc. How to get vc class name in order to compare
Swift version:
static func getClassNameAsString(className: AnyObject) -> String { return _stdlib_getDemangledTypeName(className).componentsSeparatedByString(".").last! }