How to Get Current ViewController (mainly, modalViewController)

UINavigationController Class has 

property "modalViewController",(Deprecated in iOS 6.0)

and property "presentedViewController" (iOS 5.0 and later)

To get current view,
you can use these properties.

refer the link below:
Getting Other Related View Controllers
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html