title: Get UIViewController class name in iOS
body: <p>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 it? Thank you.</p>
  
  <pre><code>NSArray *viewContrlls=[[self navController] viewControllers];
  [viewContrlls lastObject]
  </code></pre>
  
  <p>something like,</p>
  
  <pre><code>if ([[viewContrlls lastObject] name] isEqualToString @"viewControllerName"){
  </code></pre>