I\'m trying to get hash fragment of URL loaded in UIWebView, I have tried different approaches it does not seem to work.
For example if the UIWebView is loaded with
[webview stringByEvaluatingJavaScriptFromString:@"window.location.hash"] is the only way I had success to get the hash fragment in my case
[webview stringByEvaluatingJavaScriptFromString:@"window.location.hash"]
I failed on approaches 1 and approaches 2
maybe your code wrong on someway else......