I have created a mac application using the WebView. But issue is that webView is reloading when
[webView mainFrameUrl] == newURL
why this problem is happening?? how to solve it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Besides the fact that the answer of theAmateurProgrammer is the correct one I want to give you another suggestion if it didn’t solve your problem (since you didn’t accept it).
Don’t call mainFrameUrl frequently. Call it once and store it in another variable in the delegate method
- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame