CN107656729A - Updating device, method and the computer-readable recording medium of List View - Google Patents

Updating device, method and the computer-readable recording medium of List View Download PDF

Info

Publication number
CN107656729A
CN107656729A CN201710774990.8A CN201710774990A CN107656729A CN 107656729 A CN107656729 A CN 107656729A CN 201710774990 A CN201710774990 A CN 201710774990A CN 107656729 A CN107656729 A CN 107656729A
Authority
CN
China
Prior art keywords
section
cell
classes
list view
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710774990.8A
Other languages
Chinese (zh)
Other versions
CN107656729B (en
Inventor
宫健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201710774990.8A priority Critical patent/CN107656729B/en
Priority to PCT/CN2017/105015 priority patent/WO2019041441A1/en
Publication of CN107656729A publication Critical patent/CN107656729A/en
Application granted granted Critical
Publication of CN107656729B publication Critical patent/CN107656729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Abstract

The invention discloses a kind of updating device of List View in IOS systems, including memory and processor, the List View that can be run on a processor more new procedures are stored with memory, the program realizes following steps when being executed by processor:When receiving view update instruction, the class file-name field of cell classes and section classes is obtained;Corresponding with the class file-name field cell classes of lookup and section classes from the set of cell classes and the set of section classes, wherein, cell classes realize predefined cell agreements, section realizes predefined section agreements, cell agreements include the cell interfaces in cell interfaces and agency agreement in data source agreement, and section agreements include the section interfaces in section interfaces and agency agreement in data source agreement;List View is updated according to the cell classes and section classes found.The present invention also proposes the dynamic updating method of List View and a kind of computer-readable recording medium in a kind of IOS systems.The present invention realizes the renewal to the interfacial effect of List View in the case where not issuing the client of redaction.

Description

Updating device, method and the computer-readable recording medium of List View
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of updating device of List View, method and computer can Read storage medium.
Background technology
The establishment and renewal of List View are frequently referred in IOS applied software development, when realizing List View, all The primary control UITableView or UICollectionView that is provided by IOS systems to realize, for UITableView or UICollectionView can be realized accordingly after providing datasource information and delegate information List effect.
Because the content display unit cell for showing list content is provided by data source (datasource), and The corresponding logic of cell corresponding to processing in agency (delegate) accordingly, it is necessary to adjust back in IOS systems Done in datasource information and delegate information and many judge that different cell and place could be provided for different patterns Manage corresponding logic.If the species for the cell being related in List View has a lot, need to handle substantial amounts of logic judgment, It is not only readable low with maintainability, and, it is necessary to which interface realizing method all in agreement enters after user's change request Row change, to ensure the correctness of logic, therefore, it is necessary to issue new software when the pattern to carry out List View updates Version can be realized.
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.
Brief description of the drawings
Fig. 1 is the schematic diagram of the updating device preferred embodiment of List View in present invention I O S system;
Fig. 2 is the List View more new procedures in the embodiment of updating device one of List View in present invention I O S system High-level schematic functional block diagram;
Fig. 3 is the flow chart of the dynamic updating method first embodiment of List View in present invention I O S system.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
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.

Claims (10)

  1. A kind of 1. updating device of List View in IOS systems, it is characterised in that described device includes memory and processor, The List View that can be run on the processor more new procedures, the List View more new procedures are stored with the memory Following steps are realized during by the computing device:
    When receiving view update instruction, data model corresponding to the view update instruction is obtained, from the data model The class file-name field of middle acquisition cell classes and section classes;
    Corresponding with the class file-name field cell classes of lookup from the set of the cell classes being pre-created and the set of section classes With section classes, wherein, cell classes realize predefined cell agreements, and section realizes predefined section agreements, institute The cell interfaces in data source protocol of the cell agreements including UITableView are stated, and in UITableView agency agreement Cell interfaces, the section agreements include the data source protocol in section interfaces and the agency agreement in Section interfaces;
    According to the data model and cell classes corresponding with the class file-name field and section classes renewal List View.
  2. 2. the updating device of List View in IOS systems according to claim 1, it is characterised in that the processor is also For performing the List View more new procedures, to realize following steps:
    The cell classes and section classes created based on the UITableView is received, the cell classes realize predefined cell Agreement, 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 data The original two-dimensional array of model and the initial one-dimension array of section data models;
    The cell classes and section classes are initialized, the general class object value of the general class of the data source and agency is given The data source of 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.
  3. 3. the updating device of List View in IOS systems according to claim 2, it is characterised in that described in the basis The step of data model and cell classes corresponding with the class file-name field and section classes renewal List View, includes:
    The 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 data source General class, to update List View according to cell classes corresponding with the class file-name field and section classes.
  4. 4. the updating device of List View in IOS systems according to any one of claim 1 to 3, it is characterised in that institute State cell interfaces and include cell data sources, position and List View object corresponding to cell;The section interfaces include Position corresponding to section data sources, section and List View object.
  5. 5. the updating device of List View in IOS systems according to any one of claim 1 to 3, it is characterised in that institute The number for stating the one-dimension array of section data models represents section number, the two-dimensional array of the cell data models Number represent section number, the number of one-dimension array is equal to corresponding to the two-dimensional array in each two-dimensional array The number of cell under section.
  6. 6. the dynamic updating method of List View in a kind of IOS systems, it is characterised in that methods described includes:
    When receiving view update instruction, data model corresponding to the view update instruction is obtained, from the data model The class file-name field of middle acquisition cell classes and section classes;
    Corresponding with the class file-name field cell classes of lookup from the set of the cell classes being pre-created and the set of section classes With section classes, wherein, cell classes realize predefined cell agreements, and section realizes predefined section agreements, institute The cell interfaces in data source protocol of the cell agreements including UITableView are stated, and in UITableView agency agreement Cell interfaces, the section agreements include the data source protocol in section interfaces and the agency agreement in Section interfaces;
    According to the data model and cell classes corresponding with the class file-name field and section classes renewal List View.
  7. 7. the dynamic updating method of List View in IOS systems according to claim 6, it is characterised in that methods described Also include:
    The cell classes and section classes created based on the UITableView is received, the cell classes realize predefined cell Agreement, 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 data The original two-dimensional array of model and the initial one-dimension array of section data models;
    The cell classes and section classes are initialized, the general class object value of the general class of the data source and agency is given The data source of 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.
  8. 8. the dynamic updating method of List View in IOS systems according to claim 6, it is characterised in that the basis The step of data model and cell classes corresponding with the class file-name field and section classes renewal List View, includes:
    The 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 data source General class, to update List View according to cell classes corresponding with the class file-name field and section classes.
  9. 9. the dynamic updating method of List View, its feature exist in the IOS systems according to any one of claim 6 to 8 Include cell data sources in, cell interfaces, position and List View object corresponding to cell;The section connects Mouth includes position and List View object corresponding to section data sources, section.
  10. 10. a kind of computer-readable recording medium, it is characterised in that be stored with list on the computer-readable recording medium and regard Scheme more new procedures, the List View more new procedures can be by least one computing device, to realize as in claim 6 to 9 In IOS systems described in any one the step of the dynamic updating method of List View.
CN201710774990.8A 2017-08-31 2017-08-31 List view updating apparatus, method and computer-readable storage medium Active CN107656729B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710774990.8A CN107656729B (en) 2017-08-31 2017-08-31 List view updating apparatus, method and computer-readable storage medium
PCT/CN2017/105015 WO2019041441A1 (en) 2017-08-31 2017-09-30 Updating device and method for list view and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710774990.8A CN107656729B (en) 2017-08-31 2017-08-31 List view updating apparatus, method and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN107656729A true CN107656729A (en) 2018-02-02
CN107656729B CN107656729B (en) 2020-04-28

Family

ID=61128940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710774990.8A Active CN107656729B (en) 2017-08-31 2017-08-31 List view updating apparatus, method and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN107656729B (en)
WO (1) WO2019041441A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845803A (en) * 2018-05-23 2018-11-20 北京五八信息技术有限公司 A kind of update method of List View, device, equipment and storage medium
CN109582193A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 The control display methods and electronic equipment of item cell in list management group
CN109829124A (en) * 2018-12-28 2019-05-31 浙江口碑网络技术有限公司 A kind of display methods and its device of client side list page
CN109977164A (en) * 2019-04-01 2019-07-05 时代数媒科技股份有限公司 A kind of mobile terminal list development approach based on data-driven
CN110457084A (en) * 2019-07-10 2019-11-15 五八有限公司 A kind of loading method and device
CN111046206A (en) * 2018-10-12 2020-04-21 武汉斗鱼网络科技有限公司 Head portrait list display method and device, electronic equipment and storage medium
CN112328255A (en) * 2020-10-26 2021-02-05 成都商通时代数字科技有限公司 Page turning refreshing method and refreshing system for universal integrated list based on IOS (input/output system)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150205450A1 (en) * 2014-01-21 2015-07-23 Apptimize, Inc. User interface modification and usage tracking
CN105677366A (en) * 2016-02-26 2016-06-15 四川长虹电器股份有限公司 Method for achieving infinite circulating rolling selection based on UITableView in iOS
CN106302008A (en) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 Data-updating method and device
CN106502656A (en) * 2016-10-09 2017-03-15 武汉斗鱼网络科技有限公司 List View construction method and system in a kind of IOS systems
CN106502674A (en) * 2016-10-21 2017-03-15 武汉斗鱼网络科技有限公司 Grid display packing and device in a kind of List View
CN106855794A (en) * 2015-12-08 2017-06-16 平安科技(深圳)有限公司 The data sharing method and system being applied between many objects of IOS

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9721041B2 (en) * 2015-01-21 2017-08-01 Sap Se Configurable data analysis using a configuration model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150205450A1 (en) * 2014-01-21 2015-07-23 Apptimize, Inc. User interface modification and usage tracking
CN106855794A (en) * 2015-12-08 2017-06-16 平安科技(深圳)有限公司 The data sharing method and system being applied between many objects of IOS
CN105677366A (en) * 2016-02-26 2016-06-15 四川长虹电器股份有限公司 Method for achieving infinite circulating rolling selection based on UITableView in iOS
CN106302008A (en) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 Data-updating method and device
CN106502656A (en) * 2016-10-09 2017-03-15 武汉斗鱼网络科技有限公司 List View construction method and system in a kind of IOS systems
CN106502674A (en) * 2016-10-21 2017-03-15 武汉斗鱼网络科技有限公司 Grid display packing and device in a kind of List View

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845803A (en) * 2018-05-23 2018-11-20 北京五八信息技术有限公司 A kind of update method of List View, device, equipment and storage medium
CN108845803B (en) * 2018-05-23 2022-11-08 北京五八信息技术有限公司 Method, device and equipment for updating list view and storage medium
CN111046206A (en) * 2018-10-12 2020-04-21 武汉斗鱼网络科技有限公司 Head portrait list display method and device, electronic equipment and storage medium
CN109582193A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 The control display methods and electronic equipment of item cell in list management group
CN109582193B (en) * 2018-11-30 2021-01-29 北京微播视界科技有限公司 Control display method of item cells in list management group and electronic equipment
CN109829124A (en) * 2018-12-28 2019-05-31 浙江口碑网络技术有限公司 A kind of display methods and its device of client side list page
CN109977164A (en) * 2019-04-01 2019-07-05 时代数媒科技股份有限公司 A kind of mobile terminal list development approach based on data-driven
CN110457084A (en) * 2019-07-10 2019-11-15 五八有限公司 A kind of loading method and device
CN110457084B (en) * 2019-07-10 2021-11-30 五八有限公司 Loading method and device
CN112328255A (en) * 2020-10-26 2021-02-05 成都商通时代数字科技有限公司 Page turning refreshing method and refreshing system for universal integrated list based on IOS (input/output system)

Also Published As

Publication number Publication date
WO2019041441A1 (en) 2019-03-07
CN107656729B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN107656729A (en) Updating device, method and the computer-readable recording medium of List View
CN109358851B (en) Chart component creating method and device and computer-readable storage medium
CN107908472A (en) Data synchronization unit, method and computer-readable recording medium
CN109446570B (en) Business process display method, device, computer equipment and storage medium
CN104516738A (en) Integrated implementing method for development and release of APP
CN110221901A (en) Container asset creation method, apparatus, equipment and computer readable storage medium
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN102810057A (en) Log recording method
CN106469414A (en) Mobile stock open platform device and method
CN108874924A (en) Creation method, device and the computer readable storage medium of search service
CN108363684A (en) List creation method, device and server
US20220027168A1 (en) Process initiation
CN102929622A (en) Method and system for categorizing applications in mobile terminal, and mobile terminal
CN109816481A (en) Bill processing method, device and computer readable storage medium
CN107679056A (en) Generate method, electronic installation and the readable storage medium storing program for executing of SQL statement
CN106371706A (en) Method and device for site selection of application shortcuts
CN103631645A (en) Digital family middleware system based on digital medical treatment
CN103501341A (en) Method and device for establishing Web service
CN111026945B (en) Multi-platform crawler scheduling method, device and storage medium
CN106293658A (en) A kind of interface assembly generates method and equipment thereof
CN107423291A (en) A kind of data translating method and client device
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN113377346B (en) Integrated environment building method and device, electronic equipment and storage medium
CN114840194A (en) Code and operating system generation method and device, server and electronic equipment
CN107402749A (en) Realize the method and device in picture loading storehouse

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180601

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen one ledger Intelligent Technology Co., Ltd.

Address before: 200030 Xuhui District, Shanghai Kai Bin Road 166, 9, 10 level.

Applicant before: Shanghai Financial Technologies Ltd

REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1246880

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant