I want to get the current domain of UIWebView
For example:
http://a.m.tmall.com/i15104234454.htm?sid=a0c935526ab19ee7051225579c90cf96&spm=875.124399.275145.1 -> tmall.com
Is there any reliable way to do this?
I saw someone suggest this:
NSString *currentURL = myWebView.request.URL.absoluteString;
I know regex could do it. Any other way?