I am finding a strange behaviour of UIWebView.
In the delegate
- (void)webViewDidFinishLoad:(UIWebView *)webView{
[self changeFont];
//[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(changeFont) userInfo:nil repeats:NO];
}
In changeFont, I am calling the javaScript to change font of web page. It wont get applied but if I call change font method after a delay of few second from delegate webViewDidFinishLoad then it will be applied. if files are large how can we determine how much time webview will take to load if we have to fire timer from delegate webViewDidFinish to apply font size and style for file.
any explaination for this. I serached a lot and nothing is mentioned in docs.
Any help why such behaviour of UIWebView?