I am looking to find out if a web page has changed, I was going to use the content length of the web page but have not seen a way to do so. Any ideas? Or can anyone think of another way to check periodically if a web page has changed?
Share
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.
If you mean with changed wether navigation has occured, you could use a custom
UIWebViewDelegateand set a flag when e.g.-(void)webViewDidFinishLoad:occured.You might want to check
UIWebViews propertyrequestto check wether the URL actually differs.If you want to check wether the content has changed you could retrieve it e.g. like this:
Or retrieve the length e.g. like this: