TableView optimization method

An optimization method and data-driven technology, applied in program control design, instrumentation, electrical digital data processing, etc., can solve problems such as frame drop and crash, and achieve the effect of avoiding stuttering, avoiding crash, and ensuring fluency

Inactive Publication Date: 2017-11-07
BEIJING KUWO TECH
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0017] For example: when the TableView is slid quickly and there are a lot of pictures and other controls in the cell that need to be loaded, there will be severe frame drops and sometimes crashes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • TableView optimization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0044] like figure 1 As shown, the TableView optimization method of the present invention includes:

[0045] Create a refreshable tableview named RefreshTableView,

[0046] In RefreshTableView, use the EGO refresh framework to refresh, and create EGORefreshDelegate accordingly,

[0047] In RefreshTableView, create Section, which contains:

[0048]As a TableView data-driven Layout,

[0049] As the cell of the TableView display driver,

[0050] In Section, create a reusable TableView Section named ReuseSection,

[0051] In Section, create a non-reusable TableView Section, named Un ReuseSection,

[0052] In Section, create Block to simplify the use of TableView, the Block includes:

[0053] Encapsulate TableView data driver,

[0054] Encapsulate TableView display driver,

[0055] Encapsulate the basic logic of TableView,

[0056] Encapsulates the basic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a TableView optimization method. The TableView optimization method comprises the steps that a refreshable TableView is created and named as RefreshTableView, refreshing is carried out by utilizing an EGO refreshing framework in the RefreshTableView, an EGORefresh Delegate is correspondingly created, and a Section is created in the RefreshTableView, wherein the Section includes a Layout serving as a TableView data driver, and a cell serving as a TableView display driver; In the Section, a reusable TableView Section is created and named as ReuseSection; a non-reusable TableView Section is created in the Section and named as Un ReuseSection; a Block is created in the Section to simplify use of the TableView. By means of the method, the phenomena of slow response, frame dropping and the like are effectively avoided, crash is avoided, a user-defined display style is supported, and the fluency of a data layer and a display layer of the TableView is guaranteed.

Description

technical field [0001] The invention relates to the technical field of performance optimization of UITableView (abbreviated as TableView), in particular to a TableView optimization method. Background technique [0002] UITableView is a control commonly used in app development. It has powerful functions and is mostly used for data display. UITableView inherits from UIScrollView and can be displayed in two styles: Plain and Grouped. [0003] UITableView has two Delegate: dataSource and delegate. [0004] dataSource is the type of UITableViewDataSource, which mainly provides display data (UITableViewCell) for UITableView, specifies the editing operation types supported by UITableViewCell (insert, delete and reordering), and performs corresponding data update operations according to user operations. If the data is not performed according to the operation Correct update may lead to abnormal display or even crush (crash, conflict). [0005] The delegate is a type of UITableView...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45
CPCG06F8/443
Inventor 邱扬
Owner BEIJING KUWO TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products