I have a URL.when i try to open it in browser, it will redirect to another URL & display the Content. I want that content But i don’t get that redirected URL. So, I can’t able to display data.
How can i do that programmatically??
e.g. URL which i have : http://www.windpowerengineering.com/?p=11020
& the redirected URL is: http://www.windpowerengineering.com/design/mechanical/blades/bladeless-turbine-converts-wind-into-fluid-power/
I want this redirected URL. How can i get this?
1) Specify that your class conforms to the UIWebViewDelegate protocol (and make sure your WebView’s delegate outlet is connected to your view controller):
2) Add the following delegate method:
Depending on what you’re trying to do with this information, you might want to substitute #2 for this method (which will allow you the opportunity to prevent a page from loading):