The content of the invention
The present invention provides a kind of updating device of List View, method and computer-readable recording medium, its main purpose
It is in the case where not issuing the client of redaction, realizes the renewal to the interfacial effect of List View.
To achieve the above object, the present invention provides a kind of updating device of List View in IOS systems, and the device includes depositing
Reservoir and processor, the List View that can be run on the processor more new procedures, the row are stored with the memory
Following steps are realized when table view update program is by the computing device:
When receiving view update instruction, data model corresponding to the view update instruction is obtained, from the data
The class file-name field of cell classes and section classes is obtained in model;
From the cell classes being pre-created set and section classes set in lookup it is corresponding with the class file-name field
Cell classes and section classes, wherein, cell classes realize predefined cell agreements, and section realizes predefined section
Agreement, the cell agreements include the cell interfaces in UITableView data source protocol, and UITableView generation
The cell interfaces in agreement are managed, the section agreements include section interfaces and the agency in the data source protocol
Section interfaces in agreement;
According to the data model and cell classes corresponding with the class file-name field and section classes renewal List View.
Alternatively, the cell classes and section classes created based on the UITableView is received, the cell classes are realized
Predefined cell agreements, the section classes realize predefined section agreements;
The general class of the data source pre-set and the general class of agency are obtained, the general class of the data source includes cell
The original two-dimensional array of data model and the initial one-dimension array of section data models;
The cell classes and section classes are initialized, the general class object of the general class of the data source and agency are assigned
It is worth the data source to the UITableView and agency;
The cell classes of establishment and section classes are added separately in the set of cell classes and the set of section classes.
Alternatively, it is described according to the data model and cell classes corresponding with the class file-name field and section classes more
The step of new List View, includes:
The data model is assembled, to obtain the one-dimensional of the two-dimensional array of cell data models and section data models
Array;
The one-dimension array of the two-dimensional array of the cell data models of acquisition and section data models is assigned to the number
According to the general class in source, to update List View according to cell classes corresponding with the class file-name field and section classes.
Alternatively, the cell interfaces include cell data sources, position and List View object corresponding to cell;Institute
Stating section interfaces includes position and List View object corresponding to section data sources, section.
Alternatively, the number of the one-dimension array of the section data models represents section number, the cell
The number of the two-dimensional array of data model represents section number, and be equal to should for the number of one-dimension array in each two-dimensional array
The number of cell under section corresponding to two-dimensional array.
In addition, to achieve the above object, the present invention also provides a kind of dynamic updating method of List View in IOS systems,
This method includes:
When receiving view update instruction, data model corresponding to the view update instruction is obtained, from the data
The class file-name field of cell classes and section classes is obtained in model;
From the cell classes being pre-created set and section classes set in lookup it is corresponding with the class file-name field
Cell classes and section classes, wherein, cell classes realize predefined cell agreements, and section realizes predefined section
Agreement, the cell agreements include the cell interfaces in UITableView data source protocol, and UITableView generation
The cell interfaces in agreement are managed, the section agreements include section interfaces and the agency in the data source protocol
Section interfaces in agreement;
According to the data model and cell classes corresponding with the class file-name field and section classes renewal List View.
Alternatively, methods described also includes:
The cell classes and section classes created based on the UITableView is received, the cell classes are realized predefined
Cell agreements, the section classes realize predefined section agreements;
The general class of the data source pre-set and the general class of agency are obtained, the general class of the data source includes cell
The original two-dimensional array of data model and the initial one-dimension array of section data models;
The cell classes and section classes are initialized, the general class object of the general class of the data source and agency are assigned
It is worth the data source to the UITableView and agency;
The cell classes of establishment and section classes are added separately in the set of cell classes and the set of section classes.
Alternatively, it is described according to the data model and cell classes corresponding with the class file-name field and section classes more
The step of new List View, includes:
The data model is assembled, to obtain the one-dimensional of the two-dimensional array of cell data models and section data models
Array;
The one-dimension array of the two-dimensional array of the cell data models of acquisition and section data models is assigned to the number
According to the general class in source, to update List View according to cell classes corresponding with the class file-name field and section classes.
Alternatively, the cell interfaces include cell data sources, position and List View object corresponding to cell;Institute
Stating section interfaces includes position and List View object corresponding to section data sources, section.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable
Be stored with List View more new procedures in storage medium, the List View more new procedures can by least one computing device,
The step of to realize the dynamic updating method of List View in IOS systems as described above.
Updating device, method and the computer-readable recording medium of List View proposed by the present invention, have been pre-created
The set of cell classes and the set of section classes, the cell classes in these set can realize predefined cell agreements, should
Include the cell interfaces in UITableView data source protocol, and UITableView agency agreement in cell agreements
In cell interfaces, the section agreements include the data source protocol in section interfaces and the agency agreement in
Section interfaces, by each cell class in set of interface of UITableView data source and agency and
Realized in section classes, when receiving view update instruction, obtain data model corresponding to the view update instruction, from
The class file-name field of cell classes and section classes is obtained in the data model, is found from above-mentioned set and class file-name field pair
The cell classes and section classes answered, List View is updated according to data model and the cell classes with finding and section classes,
The client that redaction need not be issued again can be achieved to dynamically update the interfacial effect of List View.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of updating device of List View in IOS systems.It is present invention I O S system shown in reference picture 1
The schematic diagram of the updating device preferred embodiment of middle List View.
In the present embodiment, in IOS systems the updating device of List View can be PC (Personal Computer, it is individual
People's computer) or smart mobile phone, tablet personal computer, pocket computer etc. there is the terminal device of display function.
The updating device of List View includes memory 11, processor 12, communication bus 13, and net in the IOS systems
Network interface 14.
Wherein, memory 11 comprises at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,
Hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), magnetic storage, disk, CD etc..Memory 11
Can be in the internal storage unit of the updating device of List View in IOS systems, such as the IOS systems in certain embodiments
The hard disk of the updating device of List View.Memory 11 can also be List View in IOS systems in further embodiments
The plug-in type hard disk being equipped with the External memory equipment of updating device, such as IOS systems on the updating device of List View, intelligence
Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card)
Deng.Further, memory 11 can also both include the internal storage unit of the updating device of List View in IOS systems or wrap
Include External memory equipment.What memory 11 can be not only used for that storage is installed on the updating device of List View in IOS systems should
With software and Various types of data, such as code of List View more new procedures etc., can be also used for temporarily storing exported or
The data that person will export.
Processor 12 can be in certain embodiments a central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips, for the program stored in run memory 11
Code or processing data, such as perform List View more new procedures etc..
Communication bus 13 is used to realize the connection communication between these components.
Network interface 14 can optionally include wireline interface, the wave point (such as WI-FI interfaces) of standard, be generally used for
Communication connection is established between the device and other electronic equipments.
Fig. 1 illustrate only the renewal of List View in the IOS systems with component 11-14 and List View more new procedures
Device, it should be understood that being not required for implementing all components shown, the more or less group of the implementation that can be substituted
Part.
Alternatively, the device can also include user interface, and user interface can include display (Display), input
Unit such as keyboard (Keyboard), optional user interface can also include wireline interface, the wave point of standard.It is optional
Ground, in certain embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED
(Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, what display can also be suitably
Referred to as display screen or display unit, for being shown in the information and use that are handled in IOS systems in the updating device of List View
In the visual user interface of display.
In the device embodiment shown in Fig. 1, List View more new procedures are stored with memory 11;Processor 12 performs
Following steps are realized during the List View stored in memory 11 more new procedures:
When receiving view update instruction, data model corresponding to the view update instruction is obtained, from the data
The class file-name field of cell classes and section classes is obtained in model;
From the cell classes being pre-created set and section classes set in lookup it is corresponding with the class file-name field
Cell classes and section classes, wherein, cell classes realize predefined cell agreements, and section realizes predefined section
Agreement, the cell agreements include the cell interfaces in UITableView data source protocol, and UITableView generation
The cell interfaces in agreement are managed, the section agreements include section interfaces and the agency in the data source protocol
Section interfaces in agreement;
According to the data model and cell classes corresponding with the class file-name field and section classes renewal List View.
The embodiment provides need not issue new client release under a kind of IOS systems, you can realize in client
The scheme of the renewal of List View.In this embodiment, in order to simplify the logic judgment in List View, realize to List View
Dynamic renewal, developer pre-defines cell agreements and section agreements, as follow-up when carrying out software development
The predefined cell agreements and predefined section agreements that the cell classes and section classes of establishment to be realized.
In the embodiment, cell agreements are pre-defined, including define data source (datasource) and the generation of List View
Manage all new interfaces related to cell in (delegate), new interface is comprising cell data sources, position corresponding to cell and
List View object;All cell classes realize the agreement.Pre-defined section agreements, including define the number of List View
According to all new interfaces related to section in source and agency, new interface includes position corresponding to section data sources, section
Put and tableview (List View) object;All section realize the agreement.
Pre-establish the general class (CommonDataSource) of UITableView data source.Should
Include in CommonDataSource cell data models original two-dimensional array and section data models it is initial one-dimensional
Array, and the total interface of UITableView data source protocol can be realized.The section data models it is one-dimensional
The number of array represents section number, and the number of the two-dimensional array of the cell data models represents section
Count, the number of one-dimension array is equal to the number of the cell under section corresponding to the two-dimensional array in each two-dimensional array.
Pre-establish the general class (CommonDelegate) of UITableView agency, the CommonDelegate energy
Enough realize the total interface of UITableView agency agreement.
User's cell patterns as needed and section patterns create new cell classes and section classes, establishment
Cell classes and section classes realize above-mentioned predefined cell agreements and section agreements.
In the manner described above, user can realize different cell patterns and section patterns to create as needed
Cell classes and section classes added to default cell classes set and section classes set in.
Alternatively, in one embodiment, this method also comprises the following steps:
The cell classes and section classes created based on the UITableView is received, the cell classes are realized predefined
Cell agreements, the section classes realize predefined section agreements;
The general class of the data source pre-set and the general class of agency are obtained, the general class of the data source includes cell
The original two-dimensional array of data model and the initial one-dimension array of section data models;
The cell classes and section classes are initialized, the general class object of the general class of the data source and agency are assigned
It is worth the data source to the UITableView and agency;
The cell classes of establishment and section classes are added separately in the set of cell classes and the set of section classes.
User creates new cell classes and section classes, inherits UITableView, in cell classes and sectio n classes
In initialization, CommonDataSource and CommonDelegate objects are accordingly assigned to UITableView data
Source and agency, in addition, user names for each the cell class and sectio n classes created.
User creates new List View if desired, then obtains the data model of List View to be created, and assembling should
Data model, obtains the two-dimensional array of cell data model and the one-dimension array of section data models, and according to showing
Cell patterns and section patterns, suitable cell classes and section classes are selected from above-mentioned set, by data model with
The class file-name field of the class of selection is bound, and by the two-dimensional array of cell data model and section data models
One-dimension array is respectively correspondingly assigned to original two-dimensional array and an initial dimension in the general class of the data source of above-mentioned foundation
Group, then the establishment of List View is realized, the pattern of the List View of establishment is corresponding to the class file-name field in its data model
The pattern realized of cell classes and section classes.
Wherein, realize that the mode of the interface of the cell correlations in UITableView data source protocol is as follows:It can pass through
The two-dimensional array of cell data models gets corresponding cell data model, passes through the class file-name field included in data model
Cell classes corresponding to finding find cell objects by tableview objects and indexpath (index path), then call
Predefined cell agreements.Realize that the mode of the interface of the section correlations in UITableView data source protocol is as follows:
Corresponding section data model is got by the one-dimension array of section data models, passes through the class in data model
File-name field finds corresponding section classes, then calls predefined section agreements.Will by such mode
UITableView data source and the interface of agency are realized in each cell class and section classes in set.Include row
The container of table need not realize concrete implementation method, therefore, would not also appear in an interface realizing method and write multiple patrol
The problem of judging to handle different section and cell is collected, therefore, there is no need to released version and List View can be achieved more
Newly.
Interface related cell in agency agreement on the realizing UITableView interface related to section
Mode, the interface related to the cell in the above-mentioned data source protocol for realizing UITableView and section related interface
Mode is identical, will not be repeated here.
In this embodiment, if user wants to modify to the pattern of List View, if no in above-mentioned set need
The cell classes and section classes wanted, then only need view pattern as needed to create new cell classes and section classes and store
To gathering in the set with section classes for above-mentioned cell classes, and the class file-name field bound originally in the data model is released, will
The cell classes and the class file-name field of section classes newly created is tied in data model, triggering view update instruction.Or if
Cell classes and section classes in need in above-mentioned set, then need to only select need cell classes and section classes, and by its
The renewal of class file-name field is tied in the data model, triggering view update instruction.
The device obtains data model corresponding to view update instruction, from data when receiving view update instruction
The class file-name field of binding is obtained in model, from the cell classes being pre-created set and section classes set in lookup and class
Cell classes and section corresponding to file-name field, according to data model and cell classes corresponding with class file-name field and section classes more
New List View.
As a kind of embodiment, updated according to data model and cell classes corresponding with class file-name field and section classes
The step of List View, includes:
Data model is assembled, to obtain the one-dimension array of the two-dimensional array of cell data models and section data models;
The one-dimension array of the two-dimensional array of the cell data models of acquisition and section data models is assigned to the number
According to the general class in source, to update List View according to cell classes corresponding with the class file-name field and section classes.
Due in the cell classes in above-mentioned set and the initialization of section classes, be by CommonDataSource and
CommonDelegate objects are accordingly assigned to UITableView data source and agency, therefore, in renewal, will obtain
The two-dimensional array of cell data models and the one-dimension array of section data models be assigned to the general class of the data source i.e.
Can.
The updating device of List View proposed by the present invention, it is pre-created set and the collection of section classes of cell classes
Close, the cell classes in these set can realize predefined cell agreements, include UITableView in the cell agreements
Data source protocol in cell interfaces, and cell interfaces in UITableView agency agreement, the section associations
View includes the section interfaces in section interfaces and the agency agreement in the data source protocol, will
UITableView data source and the interface of agency are realized in each cell class and section classes in set, are being received
When being instructed to view update, obtain view update instruction corresponding to data model, obtain cell from the data model
The class file-name field of class and section classes, corresponding with class file-name field cell classes and section classes are found from above-mentioned set,
According to data model and the cell classes with finding and section classes renewal List View, it is not necessary to issue redaction again
Client is that can be achieved to dynamically update the interfacial effect of List View.
Alternatively, in other examples, List View more new procedures can also be divided into one or more mould
Block, one or more module are stored in memory 11, and (the present embodiment is processor by one or more processors
12) performed, to complete the present invention, the module alleged by the present invention is the series of computation machine program for referring to complete specific function
Instruction segment.
Shown in reference picture 2, for the List View more new procedures in the embodiment of updating device one of List View of the present invention
High-level schematic functional block diagram, List View more new procedures can be divided into acquisition module 10, searching modul 20 and update module
30, wherein:
Acquisition module 10 is used for:When receiving view update instruction, data corresponding to the view update instruction are obtained
Model, the class file-name field of cell classes and section classes is obtained from the data model;
Searching modul 20 is used for:From the cell classes being pre-created set and section classes set in lookup with it is described
Cell classes corresponding to class file-name field and section classes, wherein, cell classes realize predefined cell agreements, and section realizes pre-
The section agreements of definition, the cell agreements include the cell interfaces in UITableView data source protocol, and
Cell interfaces in UITableView agency agreement, the section agreements are included in the data source protocol
Section interfaces in section interfaces and the agency agreement;
Update module 30 is used for:According to the data model and cell classes corresponding with the class file-name field and section
Class updates List View.
In addition, the present invention also provides a kind of dynamic updating method of List View in IOS systems.Shown in reference picture 3, for this
Invent the flow chart of the dynamic updating method first embodiment of List View in IOS systems.This method can be held by a device
OK, the device can be realized by software and/or hardware.
In the present embodiment, the dynamic updating method of List View includes in IOS systems:
Step S10, when receiving view update instruction, data model corresponding to the view update instruction is obtained, from
The class file-name field of cell classes and section classes is obtained in the data model;
Step S20, from the cell classes being pre-created set and section classes set in search and the class file-name field
Corresponding cell classes and section classes, wherein, cell classes realize predefined cell agreements, and section realizes predefined
Section agreements, the cell agreements include the cell interfaces in UITableView data source protocol, and
Cell interfaces in UITableView agency agreement, the section agreements are included in the data source protocol
Section interfaces in section interfaces and the agency agreement;
Step S30, according to the data model and cell classes corresponding with the class file-name field and section classes renewal row
Table view.
The embodiment provides need not issue new client release under a kind of IOS systems, you can realize in client
The scheme of the renewal of List View.In this embodiment, in order to simplify the logic judgment in List View, realize to List View
Dynamic renewal, developer pre-defines cell agreements and section agreements, as follow-up when carrying out software development
The predefined cell agreements and predefined section agreements that the cell classes and section classes of establishment to be realized.
In the embodiment, cell agreements are pre-defined, including define data source (datasource) and the generation of List View
Manage all new interfaces related to cell in (delegate), new interface is comprising cell data sources, position corresponding to cell and
List View object;All cell classes realize the agreement.Pre-defined section agreements, including define the number of List View
According to all new interfaces related to section in source and agency, new interface includes position corresponding to section data sources, section
Put and tableview (List View) object;All section realize the agreement.
Pre-establish the general class (CommonDataSource) of UITableView data source.Should
Include in CommonDataSource cell data models original two-dimensional array and section data models it is initial one-dimensional
Array, and the total interface of UITableView data source protocol can be realized.The section data models it is one-dimensional
The number of array represents section number, and the number of the two-dimensional array of the cell data models represents section
Count, the number of one-dimension array is equal to the number of the cell under section corresponding to the two-dimensional array in each two-dimensional array.
Pre-establish the general class (CommonDelegate) of UITableView agency, the CommonDelegate energy
Enough realize the total interface of UITableView agency agreement.
User's cell patterns as needed and section patterns create new cell classes and section classes, establishment
Cell classes and section classes realize above-mentioned predefined cell agreements and section agreements.
In the manner described above, user can realize different cell patterns and section patterns to create as needed
Cell classes and section classes added to default cell classes set and section classes set in.
Alternatively, in one embodiment, processor 12 is additionally operable to perform the List View more new procedures, as follows to realize
Step:
The cell classes and section classes created based on the UITableView is received, the cell classes are realized predefined
Cell agreements, the section classes realize predefined section agreements;
The general class of the data source pre-set and the general class of agency are obtained, the general class of the data source includes cell
The original two-dimensional array of data model and the initial one-dimension array of section data models;
The cell classes and section classes are initialized, the general class object of the general class of the data source and agency are assigned
It is worth the data source to the UITableView and agency;
The cell classes of establishment and section classes are added separately in the set of cell classes and the set of section classes.
User creates new cell classes and section classes, inherits UITableView, in cell classes and sectio n classes
In initialization, CommonDataSource and CommonDelegate objects are accordingly assigned to UITableView data
Source and agency, in addition, user names for each the cell class and sectio n classes created.
User creates new List View if desired, then obtains the data model of List View to be created, and assembling should
Data model, obtains the two-dimensional array of cell data model and the one-dimension array of section data models, and according to showing
Cell patterns and section patterns, suitable cell classes and section classes are selected from above-mentioned set, by data model with
The class file-name field of the class of selection is bound, and by the two-dimensional array of cell data model and section data models
One-dimension array is respectively correspondingly assigned to original two-dimensional array and an initial dimension in the general class of the data source of above-mentioned foundation
Group, then the establishment of List View is realized, the pattern of the List View of establishment is corresponding to the class file-name field in its data model
The pattern realized of cell classes and section classes.
Wherein, realize that the mode of the interface of the cell correlations in UITableView data source protocol is as follows:It can pass through
The two-dimensional array of cell data models gets corresponding cell data model, passes through the class file-name field included in data model
Cell classes corresponding to finding find cell objects by tableview objects and indexpath (index path), then call
Predefined cell agreements.Realize that the mode of the interface of the section correlations in UITableView data source protocol is as follows:
Corresponding section data model is got by the one-dimension array of section data models, passes through the class in data model
File-name field finds corresponding section classes, then calls predefined section agreements.Will by such mode
UITableView data source and the interface of agency are realized in each cell class and section classes in set.Include row
The container of table need not realize concrete implementation method, therefore, would not also appear in an interface realizing method and write multiple patrol
The problem of judging to handle different section and cell is collected, therefore, there is no need to released version and List View can be achieved more
Newly.
Interface related cell in agency agreement on the realizing UITableView interface related to section
Mode, the interface related to the cell in the above-mentioned data source protocol for realizing UITableView and section related interface
Mode is identical, will not be repeated here.
In this embodiment, if user wants to modify to the pattern of List View, if no in above-mentioned set need
The cell classes and section classes wanted, then only need view pattern as needed to create new cell classes and section classes and store
To gathering in the set with section classes for above-mentioned cell classes, and the class file-name field bound originally in the data model is released, will
The cell classes and the class file-name field of section classes newly created is tied in data model, triggering view update instruction.Or if
Cell classes and section classes in need in above-mentioned set, then need to only select need cell classes and section classes, and by its
The renewal of class file-name field is tied in the data model, triggering view update instruction.
Server obtains data model corresponding to view update instruction, from data when receiving view update instruction
The class file-name field of binding is obtained in model, from the cell classes being pre-created set and section classes set in lookup and class
Cell classes and section corresponding to file-name field, according to data model and cell classes corresponding with class file-name field and section classes more
New List View.
As a kind of embodiment, updated according to data model and cell classes corresponding with class file-name field and section classes
The step of List View, includes:
Data model is assembled, to obtain the one-dimension array of the two-dimensional array of cell data models and section data models;
The one-dimension array of the two-dimensional array of the cell data models of acquisition and section data models is assigned to the number
According to the general class in source, to update List View according to cell classes corresponding with the class file-name field and section classes.
Due in the cell classes in above-mentioned set and the initialization of section classes, be by CommonDataSource and
CommonDelegate objects are accordingly assigned to UITableView data source and agency, therefore, in renewal, will obtain
The two-dimensional array of cell data models and the one-dimension array of section data models be assigned to the general class of the data source i.e.
Can.
The update method of List View proposed by the present invention, it is pre-created set and the collection of section classes of cell classes
Close, the cell classes in these set can realize predefined cell agreements, include UITableView in the cell agreements
Data source protocol in cell interfaces, and cell interfaces in UITableView agency agreement, the section associations
View includes the section interfaces in section interfaces and the agency agreement in the data source protocol, will
UITableView data source and the interface of agency are realized in each cell class and section classes in set, are being received
When being instructed to view update, obtain view update instruction corresponding to data model, obtain cell from the data model
The class file-name field of class and section classes, corresponding with class file-name field cell classes and section classes are found from above-mentioned set,
According to data model and the cell classes with finding and section classes renewal List View, it is not necessary to issue redaction again
Client is that can be achieved to dynamically update the interfacial effect of List View.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with List View more new procedures, the List View more new procedures can be by least one computing device, to realize such as
Lower operation:
When receiving view update instruction, data model corresponding to the view update instruction is obtained, from the data
The class file-name field of cell classes and section classes is obtained in model;
From the cell classes being pre-created set and section classes set in lookup it is corresponding with the class file-name field
Cell classes and section classes, wherein, cell classes realize predefined cell agreements, and section realizes predefined section
Agreement, the cell agreements include the cell interfaces in UITableView data source protocol, and UITableView generation
The cell interfaces in agreement are managed, the section agreements include section interfaces and the agency in the data source protocol
Section interfaces in agreement;
According to the data model and cell classes corresponding with the class file-name field and section classes renewal List View.
Further, the List View also realizes following operation when more new procedures are executed by processor:
The cell classes and section classes created based on the UITableView is received, the cell classes are realized predefined
Cell agreements, the section classes realize predefined section agreements;
The general class of the data source pre-set and the general class of agency are obtained, the general class of the data source includes cell
The original two-dimensional array of data model and the initial one-dimension array of section data models;
The cell classes and section classes are initialized, the general class object of the general class of the data source and agency are assigned
It is worth the data source to the UITableView and agency;
The cell classes of establishment and section classes are added separately in the set of cell classes and the set of section classes.
Further, the List View also realizes following operation when more new procedures are executed by processor:
The data model is assembled, to obtain the one-dimensional of the two-dimensional array of cell data models and section data models
Array;
The one-dimension array of the two-dimensional array of the cell data models of acquisition and section data models is assigned to the number
According to the general class in source, to update List View according to cell classes corresponding with the class file-name field and section classes.
It should be noted that the embodiments of the present invention are for illustration only, the quality of embodiment is not represented.And
Term " comprising " herein, "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that bag
To include process, device, article or the method for a series of elements not only include those key elements, but also including being not expressly set out
Other element, or also include for this process, device, article or the intrinsic key element of method.Do not limiting more
In the case of, the key element that is limited by sentence "including a ...", it is not excluded that in the process including the key element, device, article
Or other identical element in method also be present.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone,
Computer, server, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.