I have a UIViewController in which I have a UITextView added from interface builder. Now I want to push a view when I click on hyperlink or phone number. I am able to detect
Please note that -webView:decidePolicyForNavigationAction:... is an undocumented method (for iPhoneOS anyway. It's documented for Mac OS X) and the app will likely be rejected if that's for AppStore.
A view controller is not associated with a view. Only reverse applies. To access a view controller, make it a globally accessible variable or property.
If interface builder is used usually one could define an outlet to the application delegate that connects to the navigation view controller. Then you can use
MyAppDelegate* del = [UIApplication sharedApplication].delegate;
[del.the_navigation_view_controller pushViewController:...];