How to improve the smoothness of list scrolling in iOS

Updated on technology 2024-03-26
3 answers
  1. Anonymous users2024-02-07

    1. Check to see if there is a reusable cell every time, instead of creating a new one forever.

    2. Try not to use uiview in the cell but draw it all by yourself (because there was a bug in ios before, there will be a qualitative leap in performance.) There are also many great gods who have written a lot of articles explaining the principle, so if you are interested, go and see for yourself, I won't do copy-paste. Later, iOS also fixed this problem, and the effect of this was not so obvious.

    3. **Load to the background process, roll out of the visual range of the loading process to cancel.

    4. Rounded corners, shadows, etc., are all bitmapped, or put them in the background to draw and then use them.

    5. The data to be used in the cell is cached in advance, and the file should not be read now.

    6. The amount of data is too large to make a load more cell that can be read at one time, try to avoid reading data while rolling, so that even a dual-core CPU is difficult to guarantee that it will not be pumped.

  2. Anonymous users2024-02-06

    1. Check to see if there is a reusable cell every time, instead of creating a new one forever (this is the common sense of uitableview).

    2. Try not to use it in cell.

    uiview instead all of their own drawrect to draw Changshan (previously because iOS has.

    bug, doing so would have a qualitative leap in performance. There are also many great gods in the Nai calendar who have written a lot of articles explaining the principle, and if you are interested, go and see it yourself, I won't copy and paste. Later ios

    This problem has also been removed, and the effect of this is not so obvious. )

    3. **Load to the background process, roll out of the visual range of the loading process to cancel.

    4. Rounded corners, shadows, etc., are all bitmapped, or put them in the background to draw and then use them.

    5. The data to be used in the cell is cached in advance, and don't use it to read the bad spare parts.

    6. The amount of data is too large to make a load more cell that can be read at one time, try to avoid reading data while rolling, so that even a dual-core CPU is difficult to guarantee that it will not be pumped.

    If you do the above 6 items, you should be able to make a very smooth scroll (the original author of the current Twitter official client has written an article, and it can be summed up as the first 3 I said, you can find it).

  3. Anonymous users2024-02-05

    To make the list scroll smoothly, you can set it with the mouse.

    When the elderly use the computer, they often encounter situations such as double-clicking to clicking or not being able to see the mouse pointer. The reason for these situations is that the default settings may not be suitable for them, in addition to the unfamiliar application techniques, which can be improved by setting the mouse-related options in the system.

    1. Right-click on the blank space of the desktop, select the [Personalization] command, switch to the [Theme] options panel in the [Personalization] interface that opens, click the [Mouse Pointer Settings] hyperlink, and in the [Mouse Properties] dialog box that opens, switch to the [Pointer] tab, and select the display mode of the mouse pointer.

    Second, under the [Mouse Buttons] tab, you can configure the buttons, check the [Switch between primary and secondary buttons], the left mouse button function is shortcut menu and special dragging, and the right button function is normal selection and normal dragging, which is specially set by Windows10 for left-handed users, and can be adjusted by adjusting the double-click speed to achieve the user's habits. If we choose to double-click too fast, we may not be able to double-click at the set click interval, and the double-click operation will be invalid. Therefore, we should set the double-click speed in the middle position, which is ideal.

    3. Click the [Pointer Options] tab to detect the movement speed of the mouse. Older friends can use the pointer trail option to better see where the mouse is.

Related questions
10 answers2024-03-26

1) Press-in method.

When the inner bore of the bearing fits tightly with the journal and the outer ring fits loosely with the housing, the bearing should be installed on the shaft first, as shown in Figure 9-33a; Otherwise, the bearing should be pressed into the housing first, as shown in Figure 9-33b. If the inner bore of the bearing fits tightly with the journal, and the outer ring fits tightly with the housing, the inner bore and the outer ring of the bearing should be installed on the shaft and the housing at the same time, as shown in Figure 9-33c. >>>More

11 answers2024-03-26

Easy to difficult to divide into:

1. Lifting heavy objects. You can usually do more exercises to lift things, which seem to have nothing to do with wrist strength, but in fact, improving your grip strength is the basis for developing strong wrist strength in the future. >>>More

4 answers2024-03-26

You can consult the problem of raising chickens on the breeding software - Somutong.

7 answers2024-03-26

National policy. The individual is a brother and sister who respects all nationalities.

3 answers2024-03-26

Objectives of Class Management:1. Under the guidance of the educational ideology of learning filial piety and school, learn to be a person, learn to seek knowledge, learn to live, learn to create, and be a person who loves himself, his classmates, his class, his teachers, his parents, his school, his hometown, and his motherland. >>>More