Friday, January 10, 2014

About ios development issues webview load the page

My webview pages loaded there Comments such functions, I enter the content click to see my comment after comment something in the comments column, when loading another link back again loaded before that time there have been comments links , but do not see things my comment. If I am once again comment, click the comment content after these two comments I can see, this is how it happened? In this program I have been using the same webview, and the program does not run too close.
Reply:
Pro, emergency ah
Reply:
Emergency line. . . .
Reply:

Reply:
How did people do?
Reply:
Great God who Come behold
Reply:
Feeling or to check your own code. Several checks the following questions:
1 comment could immediately see the new add comments, what is your method used to display the contents of new comments? refresh the current page, or page using js code to append to go up?
2 Click on the link to load anything else, then come back. You this back, is back back, or click the link here?
3 Make sure your comment has been newly added storage, then make sure you can take it out and displayed on the page.
Reply:
reference to the 6th floor zhanglei5415 reply:
feel or to check your own code. Several checks the following questions:
1 comment could immediately see the new add comments, what is your method used to display the contents of new comments? refresh the current page, or page using js code to append to go up?
2 Click on the link to load anything else, then come back. You this back, is back back, or click the link here?
3 Make sure your comment has been newly added storage, then make sure you can take it out and displayed on the page.


After loading a web page, click on the page inside the submit button, you can see the newly added comments here I do not have to refresh the screen, is my code does not do anything for webview;
The other link is a link to load, and then come back over time is the link;
I am able to determine a new add comments warehousing
Reply:
reference to the 6th floor zhanglei5415 reply:
feel or to check your own code. Several checks the following questions:
1 comment could immediately see the new add comments, what is your method used to display the contents of new comments? refresh the current page, or page using js code to append to go up?
2 Click on the link to load anything else, then come back. You this back, is back back, or click the link here?
3 Make sure your comment has been newly added storage, then make sure you can take it out and displayed on the page.


Think this may be the beginning of the cache problem, try clearing the cache, but it still will not
NSURLCache * cache = [NSURLCache sharedURLCache];
[Cache removeAllCachedResponses];
[Cache setDiskCapacity: 0];
[Cache setMemoryCapacity: 0];
/ / Get the cache output from the request
NSCachedURLResponse * response =
[Cache cachedResponseForRequest: request];
/ / Determine whether the cache
if (response! = nil) {
NSLog (@ "exists in the cache");
}
The program does not prompt the existence of the cache can be reloaded after the link is no new content added comments, re-run the program on another, and this is exactly how it happened? ? ?
Reply:
reference to the 6th floor zhanglei5415 reply:
feel or to check your own code. Several checks the following questions:
1 comment could immediately see the new add comments, what is your method used to display the contents of new comments? refresh the current page, or page using js code to append to go up?
2 Click on the link to load anything else, then come back. You this back, is back back, or click the link here?
3 Make sure your comment has been newly added storage, then make sure you can take it out and displayed on the page.


The program also has Android version, Android version of the program to load these pages when it can, and did not encounter iOS programs such problems, but loads of these links in a mac or windows computer, then it will be my iOS case to the same problem. Why ah

No comments:

Post a Comment