UIWebView Href Link Space Problem
- In my application, we used the time as "10 minutes". HTML side, we are allowing the href link for "10 minutes."
- And when we click on the link for 10 minutes href, then in the
"webView: shouldStartLoadWithRequest: method handles the time.
- But it only reaches 10, the text "min" does not come because of space, If the text is 10min without a space, then the full text will be sent.
- But we show dynamic text in Webview. It will appear as 10 min / 10 s / 10 hours.
How to get 10 minute text with space in "webView: shouldStartLoadWithRequest:" .
We used the code below.
-(BOOL)webView:(UIWebView *)mainWebView shouldStartLoadWithRequest: (NSURLRequest *)request navigationType:UIWebViewNavigationType)navigationType
{
if (navigationType == UIWebViewNavigationTypeLinkClicked) {
NSLog(@"clicked string:%@",request.URL.absoluteString;
}
}
Please help me solve this problem.