JSON, data storage, object uniqueness, and gesture collisions

Source: Internet
Author: User

      sometimes load the data, back to normal back, Android normal display, but whether it is loading more or accessing data, is not loaded so much. This time to consider whether there are some of the JSON is not supported by iOS special tags or characters, and do not struggle to find code logic, grammatical errors, especially the kind of original no problem, there are problems. Do not care whether others imply you, I equipment on the line, you can't show, is not your technology. Tell him clearly, no, it could be a problem with the data.        Sometimes you need to save a data, such as time, you need to save the time when you start, and then each start is compared to this time, but how can you save the time is not the system when the start of the constant refresh it? You start adding a time today key is Firstdate, then your next system is still executing this logic, and re-saved a time, so your program will never execute that code, because you always use the new time and the current time in the comparison, their difference, is always the difference between the operating speed of a system. At this point you want to do, let the system only for the first time, in the future I will not save. How to achieve it? You can think of it all. But what is the solution? A door to let him judge who this person is, whether to let in, or the room only a person. Right, I don't care who you are, you can find the door, you come to the right, but you come to the wrong time, there is someone, you may be right, because there is no one, then you are I need that time and right, the value of the person, that is, we need this. So, first to make a judgment, I came in before the first to ask, is there a value inside? No, I will not assign a new value, no, I will put the value in.        Finally, the only problem for the object is to describe the problem first. I wrote an instantiation of a class on a page, and he had an identifier, and I wrote an instance of the class on another page, although it also had the same identifier, but the later instance class had no content. The great God said that although you created it, this object and the last object are two. To remember, two places to use the same class, remember, to use the way to get the property, get the content of this class, rather than create the way, as long as the creation, remember is the clone, is not a clone, because there is nothing inside. There are three rooms, three windows, one has been renovated, you bought a real estate, but also three rooms, three windows, this is the same, but this did not decorate. The two are different, remember. But here the essence, I do not understand, slowly, at least this simple problem has killed me more than three times, the first two is the pit in Lin that help me solve, this is a colleague to help solve.  The       project will need to add a gesture to do a separate operation, while the controller has its own click event. For example, the project needs to add out of the keyboard, but also have to click the cell jump, the system can not confirm that you click on the cell is to exit the keyboard or want to jump, so at this time to change one of the keyboard exit event to change to sliding, tableview-(void) Scrollviewdidscroll: (uiscrollview *) ScrollView; method, this method can be done to exit the keyboard response. Of course, you should use caution if your project has a response to the tableview itself when it comes to cell slippage. However, using the load more and drop-down refresh feature in the project, there is no conflict with exiting the keyboard event. of course, is also a little hint to find a bug, do not jump to think logic is wrong, you can see, long press is not able to jump, long press is the best way to resolve the gesture conflict.

JSON, data storage, object uniqueness, and gesture collisions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.