window.location via JS didn’t work reliably for me, but this did:
currentURL = currentWebView.request.URL.absoluteString;
Credit:
http://mohrt.blogspot.com/2008/10/getting-url-from-uiwebview.html
More Related Contents:
- How to determine the content size of a UIWebView?
- Change User Agent in UIWebView
- How to validate an url on the iPhone
- How to load local html file into UIWebView
- How to make a transparent UIWebView
- How to determine UIWebView height based on content, within a variable height UITableView?
- Remove gradient background from UIWebView?
- How to delete all cookies of UIWebView?
- Stop UIWebView from “bouncing” vertically?
- How to save the content in UIWebView for faster loading on next launch?
- Xcode Objective-C testing tools and debugging methods [closed]
- How to increase the height of navigation bar in Xcode?
- How to get the status of bluetooth (ON/OFF) in iphone programmatically
- Debugging App When Launched by Push Notification
- Get device token for push notification
- Adding a UILabel to a UIToolbar
- Swift default AlertViewController breaking constraints
- how to remove HTML Tags from NSString in iphone?
- Handling Push Notifications when App is Terminated
- Changing the height of the Navigation bar iOS Swift
- How to add background image on iphone Navigation bar?
- Certificate has either expired or has been revoked
- Change the color of a link in an NSMutableAttributedString
- How to get back “Allow Push Notifications” dialog after it was dismissed once?
- ITMS-90809: Deprecated API Usage – existing app that use UIWebView are no longer accepted
- Disable zoom in WKWebView?
- Enable/Disable Apple Push Notification from iPhone app?
- UIWebView — load external website, programmatically set initial zoom scale, and allow user to zoom afterwards
- iOS: Update launch screen dynamically
- Disable bounce effect in UIPageViewController [duplicate]