WO2019041441A1 - Updating device and method for list view and computer-readable storage medium - Google Patents

Updating device and method for list view and computer-readable storage medium Download PDF

Info

Publication number
WO2019041441A1
WO2019041441A1 PCT/CN2017/105015 CN2017105015W WO2019041441A1 WO 2019041441 A1 WO2019041441 A1 WO 2019041441A1 CN 2017105015 W CN2017105015 W CN 2017105015W WO 2019041441 A1 WO2019041441 A1 WO 2019041441A1
Authority
WO
WIPO (PCT)
Prior art keywords
class
section
cell
protocol
data model
Prior art date
Application number
PCT/CN2017/105015
Other languages
French (fr)
Chinese (zh)
Inventor
宫健
Original Assignee
上海壹账通金融科技有限公司
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 上海壹账通金融科技有限公司 filed Critical 上海壹账通金融科技有限公司
Publication of WO2019041441A1 publication Critical patent/WO2019041441A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a device, a method, and a computer readable storage medium for updating a list view.
  • IOS application software development often involves the creation and update of list views.
  • list view it is implemented by the native control UITableView or UICollectionView provided by IOS system. After providing datasource information and delegate information for UITableView or UICollectionView The corresponding list effect can be achieved.
  • the datasource information needs to be called back and A lot of judgments are made in the delegate information to provide different cells for different styles and to handle the corresponding logic. If there are many types of cells involved in the list view, a large number of logical decisions need to be processed, which is not only readable and maintainable, but also requires changes to all interface implementation methods in the protocol after the user changes the requirements. In order to ensure the correctness of the logic, in order to update the style of the list view, it is necessary to release a new software version.
  • the present invention provides an apparatus, method, and computer readable storage medium for updating a list view.
  • the main purpose of the present invention is to implement an update of the interface effect of the list view without releasing a new version of the client.
  • the present invention provides an apparatus for updating a list view in an IOS system, the apparatus comprising a memory and a processor, the memory storing a list view update program executable on the processor, the list
  • the view update program implements the following steps when executed by the processor:
  • the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
  • receiving a cell class and a section class created according to the UITableView where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
  • the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
  • the step of updating the list view according to the data model and the cell class and the section class corresponding to the class name field includes:
  • a two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  • the cell interface includes a cell data source, a location corresponding to the cell, and a list view object;
  • the section interface includes a section data source, a location corresponding to the section, and a list view object.
  • the number of the one-dimensional array of the section data model represents the number of sections
  • the number of the two-dimensional array of the cell data model represents the number of sections
  • the one-dimensional array in each two-dimensional array The number is equal to the number of cells under the section corresponding to the two-dimensional array.
  • the present invention further provides a method for dynamically updating a list view in an IOS system, the method comprising:
  • the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
  • the method further includes:
  • the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
  • the step of updating the list view according to the data model and the cell class and the section class corresponding to the class name field includes:
  • a two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  • the cell interface includes a cell data source, a location corresponding to the cell, and a list view object;
  • the section interface includes a section data source, a location corresponding to the section, and a list view object.
  • the present invention also provides a computer readable storage medium having stored thereon a list view update program, the list view update program being executable by at least one processor to implement The steps of the dynamic update method of the list view in the IOS system as described above.
  • the updating device, the method and the computer readable storage medium of the list view provided by the present invention pre-create a set of a cell class and a set of a section class, and the cell class in the set can implement a predefined cell protocol, in the cell protocol.
  • the interface of the source and the proxy is implemented in each of the cell class and the section class in the set.
  • the class name field finds the cell class and the section class corresponding to the class name field from the above set, and updates the list view according to the data model and the found cell class and the section class, and does not need to re-release the new version of the client.
  • the interface effect of the list view can be dynamically updated.
  • FIG. 1 is a schematic diagram of a preferred embodiment of a device for updating a list view in an IOS system according to the present invention
  • FIG. 2 is a schematic diagram of functional blocks of a list view update program in an embodiment of an update device for a list view in an IOS system according to the present invention
  • FIG. 3 is a flowchart of a first embodiment of a method for dynamically updating a list view in an IOS system according to the present invention.
  • the present invention provides an apparatus for updating a list view in an IOS system.
  • FIG. 1 a schematic diagram of a preferred embodiment of a device for updating a list view in the IOS system of the present invention is shown.
  • the update device of the list view in the IOS system may be a PC (Personal Computer), or may be a terminal device having a display function such as a smart phone, a tablet computer, or a portable computer.
  • PC Personal Computer
  • the update device of the list view in the IOS system may be a PC (Personal Computer), or may be a terminal device having a display function such as a smart phone, a tablet computer, or a portable computer.
  • the update means of the list view in the IOS system includes a memory 11, a processor 12, a communication bus 13, and a network interface 14.
  • the memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like.
  • the memory 11 may in some embodiments be an internal storage unit of the update device of the list view in the IOS system, such as the hard disk of the update device of the list view in the IOS system.
  • the memory 11 may also be an external storage device of the update device of the list view in the IOS system in other embodiments, such as a plug-in hard disk equipped with an update device of the list view in the IOS system, and a smart memory card (Smart Media Card, SMC). ), Secure Digital (SD) card, Flash Card, etc.
  • SD Secure Digital
  • the memory 11 may also include an internal storage unit of an update device including a list view in the IOS system, and an external storage device.
  • the memory 11 can be used not only for storing application software of various types of data installed in the list view of the IOS system, but also for various types of data, such as code of a list view update program, and for temporarily storing data that has been output or will be output.
  • the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing stored in the memory 11. Data, such as performing a list view update program, and so on.
  • CPU Central Processing Unit
  • controller microcontroller
  • microprocessor or other data processing chip for running program code or processing stored in the memory 11.
  • Data such as performing a list view update program, and so on.
  • Communication bus 13 is used to implement connection communication between these components.
  • the network interface 14 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is typically used to establish a communication connection between the device and other electronic devices.
  • a standard wired interface such as a WI-FI interface
  • Figure 1 shows only the update device for the list view in the IOS system with components 11-14 and the list view update program, but it should be understood that not all illustrated components may be implemented, alternative implementations may be more or more Less components.
  • the device may further include a user interface
  • the user interface may include a display
  • an input unit such as a keyboard
  • the optional user interface may further include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display may also be appropriately referred to as a display screen or a display unit for displaying information processed in the update device of the list view in the IOS system and for displaying the visualization.
  • User interface may be any suitable display, a display, an input unit such as a keyboard, and the optional user interface may further include a standard wired interface and a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like.
  • the display may also be appropriately referred to as a display screen or a
  • a list view update program is stored in the memory 11; when the processor 12 executes the list view update program stored in the memory 11, the following steps are implemented:
  • the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
  • This embodiment provides a solution for implementing the update of the list view in the client without releasing a new client version in the IOS system.
  • the developer pre-defines the cell protocol and the section protocol in the software development, as the subsequently created cell class and section class. Implemented predefined cell protocols and predefined section protocols.
  • the cell protocol is defined in advance, including defining a data source (datasource) of the list view and all new interfaces related to the cell in the proxy, the new interface including the cell data source, the location corresponding to the cell, and the list view object; All cell classes implement this protocol.
  • the section protocol is pre-defined, including defining the data source of the list view and all new sections related to the section in the proxy.
  • the new interface includes the section data source, the location corresponding to the section, and the tableview object; all sections implement the protocol.
  • a generic class (CommonDataSource) of the data source of the UITableView is pre-established.
  • the CommonDataSource contains the initial two-dimensional array of the cell data model and the initial one-dimensional array of the section data model, and can implement all interfaces of the UITableView data source protocol.
  • the number of one-dimensional arrays of the section data model represents the number of sections
  • the number of two-dimensional arrays of the cell data model represents the number of sections
  • the number of one-dimensional arrays in each two-dimensional array is equal to the number of sections The number of cells under the section corresponding to the two-dimensional array.
  • the generic class (CommonDelegate) of the proxy of UITableView is pre-established, and the CommonDelegate can implement all interfaces of the proxy protocol of UITableView.
  • the user creates a new cell class and section class according to the required cell style and section style.
  • the created cell class and section class implement the above-mentioned predefined cell protocol and section protocol.
  • the user can create a cell class and a section class capable of implementing different cell styles and section styles as needed to be added to a set of preset cell classes and a collection of section classes.
  • the method further includes the following steps:
  • the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
  • the user creates a new cell class and section class, inherits the UITableView, and assigns the CommonDataSource and the CommonDelegate object to the UITableView data source and proxy correspondingly in the initialization of the cell class and the section class.
  • the user creates each cell class and The section class is named.
  • the data model of the list view to be created is obtained, the data model is assembled, and a two-dimensional array of the data model of the cell and a one-dimensional array of the section data model are obtained, and according to the cell style to be displayed.
  • the section style select the appropriate cell class and section class from the above set, bind the data model to the class name field of the selected class, and combine the two-dimensional array of the cell data model with the one-dimensional array of the section data model
  • the initial two-dimensional array and the initial one-dimensional array in the general class of the data source established above are respectively assigned, and the list view is created.
  • the style of the created list view is the cell corresponding to the class name field in the data model.
  • the implemented style of the class and section class is the style of the class and section class.
  • the method for implementing the cell-related interface in the data source protocol of the UITableView is as follows: the data model of the corresponding cell can be obtained through the two-dimensional array of the cell data model, and the corresponding cell class is found through the class name field included in the data model. Or find the cell object through the tableview object and indexpath (index path), and then call the predefined cell protocol.
  • the way to implement the section-related interface in the data source protocol of UITableView is as follows: obtain the corresponding section data model through the one-dimensional array of the section data model, find the corresponding section class through the class name field in the data model, and then call the pre-pre The defined section protocol. In this way, the UITableView data source and proxy interface are implemented in each cell class and section class in the collection.
  • the container containing the list does not need to implement a specific implementation method, so there is no problem of writing multiple logical decisions to handle different sections and cells in an interface implementation method. Therefore, the list view can be implemented without releasing the version. Update.
  • the manner of implementing the interface and the section-related interface in the proxy protocol of the UITableView is the same as that of the interface related to the cell in the data source protocol of the UITableView, and is not described here.
  • the user wants to modify the style of the list view, if there is no required cell class and section class in the above set, then only need to create a new cell class and section class according to the required view style and store it to In the collection of the cell class and the collection of the section class, the class name field originally bound in the data model is released, and the newly created cell class and the class name field of the section class are bound to the data model, and the view update instruction is triggered. Alternatively, if there is a required cell class and section class in the above set, then only the required cell class and section class are selected, and the class name field update is bound to the data model, and the view update instruction is triggered.
  • the device When receiving the view update instruction, acquires the data model corresponding to the view update instruction, obtains the bound class name field from the data model, and searches for the class name from the set of the pre-created cell class and the set of the section class.
  • the cell class and section corresponding to the segment update the list view according to the data model and the cell class and the section class corresponding to the class name field.
  • the steps of updating the list view according to the data model and the cell class and the section class corresponding to the class name field include:
  • a two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  • the CommonDataSource and the CommonDelegate object are correspondingly assigned to the data source and the proxy of the UITableView. Therefore, when updating, the two-dimensional array and the section data model of the obtained cell data model are acquired.
  • the one-dimensional array is assigned to the generic class of the data source.
  • the updating device of the list view proposed by the present invention pre-creates a set of a cell class and a set of a section class, and the cell class in the set can implement a predefined cell protocol, where the cell protocol includes a UITableView data source protocol.
  • the cell interface, and the cell interface in the proxy protocol of the UITableView, the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol, and the UITableView data source and the proxy interface are in the set.
  • Each of the cell class and the section class is implemented, and when receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model, from the foregoing set Find the cell class and section class corresponding to the class name field, update the list view according to the data model and the found cell class and section class, and realize the interface effect on the list view without re-publishing the new version of the client. Dynamically updated.
  • the list view update program may also be divided into one or more modules, one or more modules are stored in the memory 11 and are composed of one or more processors (this embodiment) Illustrated by processor 12) to accomplish the invention, a module as referred to herein refers to a series of computer program instructions that are capable of performing a particular function.
  • the list view update program may be divided into an acquisition module 10, a lookup module 20, and an update module 30, where:
  • the obtaining module 10 is configured to: when receiving the view update instruction, acquire a data model corresponding to the view update instruction, and obtain a class name field of the cell class and the section class from the data model;
  • the searching module 20 is configured to: search a cell class and a section class corresponding to the class name field from a set of a pre-created cell class and a set of a section class, where the cell class implements a predefined cell protocol, and the section implements a predefined a section protocol, the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, The section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
  • the update module 30 is configured to: update the list view according to the data model and the cell class and the section class corresponding to the class name field.
  • the present invention also provides a dynamic update method of a list view in an IOS system.
  • FIG. 3 it is a flowchart of a first embodiment of a dynamic update method for a list view in an IOS system according to the present invention. The method can be performed by a device that can be implemented by software and/or hardware.
  • the dynamic update method of the list view in the IOS system includes:
  • Step S10 When receiving the view update instruction, acquire a data model corresponding to the view update instruction, and obtain a class name field of the cell class and the section class from the data model;
  • Step S20 Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol.
  • the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
  • Step S30 updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
  • This embodiment provides a solution for implementing the update of the list view in the client without releasing a new client version in the IOS system.
  • the developer pre-defines the cell protocol and the section protocol in the software development, as the subsequently created cell class and section class. Implemented predefined cell protocols and predefined section protocols.
  • the cell protocol is defined in advance, including defining a data source (datasource) of the list view and all new interfaces related to the cell in the proxy, the new interface including the cell data source, the location corresponding to the cell, and the list view object; All cell classes implement this protocol.
  • the section protocol is pre-defined, including defining the data source of the list view and all new sections related to the section in the proxy.
  • the new interface includes the section data source, the location corresponding to the section, and the tableview object; all sections implement the protocol.
  • a generic class (CommonDataSource) of the data source of the UITableView is pre-established.
  • the CommonDataSource contains the initial two-dimensional array of the cell data model and the initial one-dimensional array of the section data model, and can implement all interfaces of the UITableView data source protocol.
  • the number of one-dimensional arrays of the section data model represents the number of sections
  • the number of two-dimensional arrays of the cell data model represents the number of sections
  • the number of one-dimensional arrays in each two-dimensional array is equal to the number of sections The number of cells under the section corresponding to the two-dimensional array.
  • the generic class (CommonDelegate) of the proxy of UITableView is pre-established, and the CommonDelegate can implement all interfaces of the proxy protocol of UITableView.
  • the user creates a new cell class and section class according to the required cell style and section style.
  • the created cell class and section class implement the above-mentioned predefined cell protocol and section protocol.
  • the user can create a cell class and a section class capable of implementing different cell styles and section styles as needed to be added to a set of preset cell classes and a collection of section classes.
  • the processor 12 is further configured to execute the list view update procedure to implement the following steps:
  • the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
  • the user creates a new cell class and section class, inherits the UITableView, and assigns the CommonDataSource and the CommonDelegate object to the UITableView data source and proxy correspondingly in the initialization of the cell class and the section class.
  • the user creates each cell class and The section class is named.
  • the data model of the list view to be created is obtained, the data model is assembled, and a two-dimensional array of the data model of the cell and a one-dimensional array of the section data model are obtained, and according to the cell style to be displayed.
  • the section style select the appropriate cell class and section class from the above set, bind the data model to the class name field of the selected class, and combine the two-dimensional array of the cell data model with the one-dimensional array of the section data model
  • the initial two-dimensional array and the initial one-dimensional array in the general class of the data source established above are respectively assigned, and the list view is created.
  • the style of the created list view is the cell corresponding to the class name field in the data model.
  • the implemented style of the class and section class is the style of the class and section class.
  • the method for implementing the cell-related interface in the data source protocol of the UITableView is as follows: the data model of the corresponding cell can be obtained through the two-dimensional array of the cell data model, and the corresponding cell class is found through the class name field included in the data model. Or find the cell object through the tableview object and indexpath (index path), and then call the predefined cell protocol.
  • the way to implement the section-related interface in the data source protocol of UITableView is as follows: obtain the corresponding section data model through the one-dimensional array of the section data model, find the corresponding section class through the class name field in the data model, and then call the pre-pre The defined section protocol. In this way, the UITableView data source and proxy interface are implemented in each cell class and section class in the collection.
  • the container containing the list does not need to implement a specific implementation method, so there is no problem of writing multiple logical decisions to handle different sections and cells in an interface implementation method. Therefore, the list view can be implemented without releasing the version. Update.
  • the manner of implementing the interface and the section-related interface in the proxy protocol of the UITableView is the same as that of the interface related to the cell in the data source protocol of the UITableView, and is not described here.
  • the user wants to modify the style of the list view, if the above set There is no required cell class and section class, just create a new cell class and section class according to the required view style and store it in the collection of the above cell class and the collection of the section class, and unbind the original binding in the data model.
  • the class name field binds the newly created cell class and the class name field of the section class to the data model, triggering the view update instruction.
  • the class name field is bound to the data model, and the view update instruction is triggered.
  • the server When receiving the view update instruction, the server obtains the data model corresponding to the view update instruction, obtains the bound class name field from the data model, and searches for the class name field from the set of the pre-created cell class and the set of the section class.
  • the corresponding cell class and section update the list view according to the data model and the cell class and section class corresponding to the class name field.
  • the steps of updating the list view according to the data model and the cell class and the section class corresponding to the class name field include:
  • a two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  • the CommonDataSource and the CommonDelegate object are correspondingly assigned to the data source and the proxy of the UITableView. Therefore, when updating, the two-dimensional array and the section data model of the obtained cell data model are acquired.
  • the one-dimensional array is assigned to the generic class of the data source.
  • the update method of the list view proposed by the present invention pre-creates a set of a cell class and a set of a section class, and the cell class in the set can implement a predefined cell protocol, where the cell protocol includes a UITableView data source protocol.
  • the cell interface, and the cell interface in the proxy protocol of the UITableView, the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol, and the UITableView data source and the proxy interface are in the set.
  • Each of the cell class and the section class is implemented, and when receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model, from the foregoing set Find the cell class and section class corresponding to the class name field, update the list view according to the data model and the found cell class and section class, and realize the interface effect on the list view without re-publishing the new version of the client. Dynamically updated.
  • an embodiment of the present invention further provides a computer readable storage medium, where the list view update program is stored on the computer readable storage medium, and the list view update program may be executed by at least one processor to implement the following operations:
  • the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, the section protocol including a section interface and the proxy protocol in the data source protocol Section interface
  • the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
  • a two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  • portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a terminal device which may be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An updating device for list view in an IOS system, comprising a memory (11) and a processor (12). A list view updating program which may be run on the processor is stored in the memory (11). When the program is executed by the processor (12), the following steps are implemented: acquiring class name fields of cell classes and section classes when a view updating instruction is received; finding cell classes and section classes which correspond to the class name fields from a cell class set and a section class set, wherein the cell classes implement a predefined cell protocol, the section classes implement a predefined section protocol, the cell protocol comprises cell interfaces in a data source protocol and cell interfaces in a delegate protocol, and the section protocol comprises section interfaces in the data source protocol and section interfaces in the delegate protocol; and updating a list view according to the found cell classes and section classes. A dynamic updating method for a list view in the described IOS system and a computer-readable storage medium may effectively update an interface of the list view without releasing a new version of a client.

Description

列表视图的更新装置、方法及计算机可读存储介质List device updating device, method and computer readable storage medium
本申请申明享有2017年8月31日递交的申请号为201710774990.8、名称为“列表视图的更新装置、方法及计算机可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。The present application claims the priority of the Chinese patent application filed on Aug. 31, 2017, with the application number of 201710774990.8, entitled "Listing View Update Device, Method, and Computer Readable Storage Medium", the overall content of which is The manner of reference is incorporated in the present application.
技术领域Technical field
本发明涉及终端技术领域,尤其涉及一种列表视图的更新装置、方法及计算机可读存储介质。The present invention relates to the field of terminal technologies, and in particular, to a device, a method, and a computer readable storage medium for updating a list view.
背景技术Background technique
IOS的应用软件开发中经常涉及到列表视图的创建及更新,在实现列表视图时,都是通过IOS系统提供的原生控件UITableView或UICollectionView来实现的,在为UITableView或UICollectionView提供datasource信息和delegate信息后可以实现相应的列表效果。IOS application software development often involves the creation and update of list views. When implementing list view, it is implemented by the native control UITableView or UICollectionView provided by IOS system. After providing datasource information and delegate information for UITableView or UICollectionView The corresponding list effect can be achieved.
由于用于显示列表内容的内容显示单元cell是由数据源(datasource)来提供,并在相应的代理(delegate)中处理对应的cell的相应的逻辑,在IOS系统中,需要在回调datasource信息和delegate信息中做很多判断才能为不同的样式来提供不同的cell并处理相应的逻辑。如果列表视图中涉及到的cell的种类有很多,则需要处理大量的逻辑判断,不仅可读性和可维护性低,而且在用户变更需求后,需要对协议中所有的接口实现方法进行更改,以保证逻辑的正确性,因此,若要进行列表视图的样式更新时,需要发布新的软件版本才能够实现。Since the content display unit cell for displaying the list content is provided by a data source and processes the corresponding logic of the corresponding cell in a corresponding delegate, in the IOS system, the datasource information needs to be called back and A lot of judgments are made in the delegate information to provide different cells for different styles and to handle the corresponding logic. If there are many types of cells involved in the list view, a large number of logical decisions need to be processed, which is not only readable and maintainable, but also requires changes to all interface implementation methods in the protocol after the user changes the requirements. In order to ensure the correctness of the logic, in order to update the style of the list view, it is necessary to release a new software version.
发明内容Summary of the invention
本发明提供一种列表视图的更新装置、方法及计算机可读存储介质,其主要目的在于在不发布新版本的客户端的情况下,实现对列表视图的界面效果的更新。The present invention provides an apparatus, method, and computer readable storage medium for updating a list view. The main purpose of the present invention is to implement an update of the interface effect of the list view without releasing a new version of the client.
为实现上述目的,本发明提供一种IOS系统中列表视图的更新装置,该装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的列表视图更新程序,所述列表视图更新程序被所述处理器执行时实现如下步骤:To achieve the above object, the present invention provides an apparatus for updating a list view in an IOS system, the apparatus comprising a memory and a processor, the memory storing a list view update program executable on the processor, the list The view update program implements the following steps when executed by the processor:
在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;After receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model;
从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol, The cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
根据所述数据模型和与所述类名字段对应的cell类和section类更新列表 视图。Updating the list according to the data model and the cell class and section class corresponding to the class name field view.
可选地,接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议;Optionally, receiving a cell class and a section class created according to the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组;Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
将创建的cell类和section类分别添加至cell类的集合和section类的集合中。Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
可选地,所述根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图的步骤包括:Optionally, the step of updating the list view according to the data model and the cell class and the section class corresponding to the class name field includes:
组装所述数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling the data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
可选地,所述cell接口中包括cell数据源、cell对应的位置以及列表视图对象;所述section接口包括section数据源、section对应的位置以及列表视图对象。Optionally, the cell interface includes a cell data source, a location corresponding to the cell, and a list view object; the section interface includes a section data source, a location corresponding to the section, and a list view object.
可选地,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。Optionally, the number of the one-dimensional array of the section data model represents the number of sections, and the number of the two-dimensional array of the cell data model represents the number of sections, and the one-dimensional array in each two-dimensional array The number is equal to the number of cells under the section corresponding to the two-dimensional array.
此外,为实现上述目的,本发明还提供一种IOS系统中列表视图的动态更新方法,该方法包括:In addition, in order to achieve the above object, the present invention further provides a method for dynamically updating a list view in an IOS system, the method comprising:
在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;After receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model;
从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol, The cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。Updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
可选地,所述方法还包括:Optionally, the method further includes:
接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议;Receiving a cell class and a section class created based on the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组; Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
将创建的cell类和section类分别添加至cell类的集合和section类的集合中。Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
可选地,所述根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图的步骤包括:Optionally, the step of updating the list view according to the data model and the cell class and the section class corresponding to the class name field includes:
组装所述数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling the data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
可选地,所述cell接口中包括cell数据源、cell对应的位置以及列表视图对象;所述section接口包括section数据源、section对应的位置以及列表视图对象。Optionally, the cell interface includes a cell data source, a location corresponding to the cell, and a list view object; the section interface includes a section data source, a location corresponding to the section, and a list view object.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有列表视图更新程序,所述列表视图更新程序可被至少一个处理器执行,以实现如上所述的IOS系统中列表视图的动态更新方法的步骤。Furthermore, in order to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a list view update program, the list view update program being executable by at least one processor to implement The steps of the dynamic update method of the list view in the IOS system as described above.
本发明提出的列表视图的更新装置、方法及计算机可读存储介质,预先创建有cell类的集合和section类的集合,在这些集合中的cell类可以实现预定义的cell协议,该cell协议中包含有UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口,将UITableView的数据源和代理的接口在集合中的每一个cell类和section类中实现,在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段,从上述集合中查找到与类名字段对应的cell类和section类,根据数据模型和与查找到的cell类和section类更新列表视图,不需要重新发布新版本的客户端即可实现对列表视图的界面效果进行动态地更新。The updating device, the method and the computer readable storage medium of the list view provided by the present invention pre-create a set of a cell class and a set of a section class, and the cell class in the set can implement a predefined cell protocol, in the cell protocol. The cell interface in the data source protocol of the UITableView and the cell interface in the proxy protocol of the UITableView, the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol, and the data of the UITableView The interface of the source and the proxy is implemented in each of the cell class and the section class in the set. When the view update instruction is received, the data model corresponding to the view update instruction is obtained, and the cell class and the section class are obtained from the data model. The class name field, finds the cell class and the section class corresponding to the class name field from the above set, and updates the list view according to the data model and the found cell class and the section class, and does not need to re-release the new version of the client. The interface effect of the list view can be dynamically updated.
附图说明DRAWINGS
图1为本发明IOS系统中列表视图的更新装置较佳实施例的示意图;1 is a schematic diagram of a preferred embodiment of a device for updating a list view in an IOS system according to the present invention;
图2为本发明IOS系统中列表视图的更新装置一实施例中的列表视图更新程序的功能模块示意图;2 is a schematic diagram of functional blocks of a list view update program in an embodiment of an update device for a list view in an IOS system according to the present invention;
图3为本发明IOS系统中列表视图的动态更新方法第一实施例的流程图。FIG. 3 is a flowchart of a first embodiment of a method for dynamically updating a list view in an IOS system according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步 说明。The implementation, functional features and advantages of the object of the present invention will be further described with reference to the accompanying drawings. Description.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种IOS系统中列表视图的更新装置。参照图1所示,为本发明IOS系统中列表视图的更新装置较佳实施例的示意图。The present invention provides an apparatus for updating a list view in an IOS system. Referring to FIG. 1, a schematic diagram of a preferred embodiment of a device for updating a list view in the IOS system of the present invention is shown.
在本实施例中,IOS系统中列表视图的更新装置可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、便携计算机等具有显示功能的终端设备。In this embodiment, the update device of the list view in the IOS system may be a PC (Personal Computer), or may be a terminal device having a display function such as a smart phone, a tablet computer, or a portable computer.
该IOS系统中列表视图的更新装置包括存储器11、处理器12,通信总线13,以及网络接口14。The update means of the list view in the IOS system includes a memory 11, a processor 12, a communication bus 13, and a network interface 14.
其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是IOS系统中列表视图的更新装置的内部存储单元,例如该IOS系统中列表视图的更新装置的硬盘。存储器11在另一些实施例中也可以是IOS系统中列表视图的更新装置的外部存储设备,例如IOS系统中列表视图的更新装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括IOS系统中列表视图的更新装置的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于IOS系统中列表视图的更新装置的应用软件及各类数据,例如列表视图更新程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the update device of the list view in the IOS system, such as the hard disk of the update device of the list view in the IOS system. The memory 11 may also be an external storage device of the update device of the list view in the IOS system in other embodiments, such as a plug-in hard disk equipped with an update device of the list view in the IOS system, and a smart memory card (Smart Media Card, SMC). ), Secure Digital (SD) card, Flash Card, etc. Further, the memory 11 may also include an internal storage unit of an update device including a list view in the IOS system, and an external storage device. The memory 11 can be used not only for storing application software of various types of data installed in the list view of the IOS system, but also for various types of data, such as code of a list view update program, and for temporarily storing data that has been output or will be output.
处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行列表视图更新程序等。The processor 12, in some embodiments, may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing stored in the memory 11. Data, such as performing a list view update program, and so on.
通信总线13用于实现这些组件之间的连接通信。 Communication bus 13 is used to implement connection communication between these components.
网络接口14可选的可以包括标准的有线接口、无线接口(如WI-FI接口),通常用于在该装置与其他电子设备之间建立通信连接。The network interface 14 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is typically used to establish a communication connection between the device and other electronic devices.
图1仅示出了具有组件11-14以及列表视图更新程序的IOS系统中列表视图的更新装置,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Figure 1 shows only the update device for the list view in the IOS system with components 11-14 and the list view update program, but it should be understood that not all illustrated components may be implemented, alternative implementations may be more or more Less components.
可选地,该装置还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在IOS系统中列表视图的更新装置中处理的信息以及用于显示可视化 的用户界面。Optionally, the device may further include a user interface, the user interface may include a display, an input unit such as a keyboard, and the optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch sensor, or the like. Wherein, the display may also be appropriately referred to as a display screen or a display unit for displaying information processed in the update device of the list view in the IOS system and for displaying the visualization. User interface.
在图1所示的装置实施例中,存储器11中存储有列表视图更新程序;处理器12执行存储器11中存储的列表视图更新程序时实现如下步骤:In the apparatus embodiment shown in FIG. 1, a list view update program is stored in the memory 11; when the processor 12 executes the list view update program stored in the memory 11, the following steps are implemented:
在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;After receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model;
从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol, The cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。Updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
该实施例提供一种IOS系统下不需要发布新的客户端版本,即可实现客户端中的列表视图的更新的方案。在该实施例中,为了简化列表视图中的逻辑判断,实现对列表视图的动态更新,开发人员在进行软件开发时,预先定义好cell协议和section协议,作为后续创建的cell类和section类要实现的预定义cell协议和预定义section协议。This embodiment provides a solution for implementing the update of the list view in the client without releasing a new client version in the IOS system. In this embodiment, in order to simplify the logic judgment in the list view and realize the dynamic update of the list view, the developer pre-defines the cell protocol and the section protocol in the software development, as the subsequently created cell class and section class. Implemented predefined cell protocols and predefined section protocols.
该实施例中,预先定义cell协议,包括定义列表视图的数据源(datasource)和代理(delegate)中所有和cell相关的新接口,新接口包含cell数据源、cell对应的位置以及列表视图对象;所有的cell类实现该协议。预先定义section协议,包括定义列表视图的数据源和代理中所有和section相关的新接口,新接口包含section数据源、section对应的位置以及tableview(列表视图)对象;所有的section实现该协议。In this embodiment, the cell protocol is defined in advance, including defining a data source (datasource) of the list view and all new interfaces related to the cell in the proxy, the new interface including the cell data source, the location corresponding to the cell, and the list view object; All cell classes implement this protocol. The section protocol is pre-defined, including defining the data source of the list view and all new sections related to the section in the proxy. The new interface includes the section data source, the location corresponding to the section, and the tableview object; all sections implement the protocol.
预先建立UITableView的数据源的通用类(CommonDataSource)。该CommonDataSource中包含有cell数据模型的初始二维数组和section数据模型的初始一维数组,并且能够实现UITableView的数据源协议的所有接口。所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。A generic class (CommonDataSource) of the data source of the UITableView is pre-established. The CommonDataSource contains the initial two-dimensional array of the cell data model and the initial one-dimensional array of the section data model, and can implement all interfaces of the UITableView data source protocol. The number of one-dimensional arrays of the section data model represents the number of sections, and the number of two-dimensional arrays of the cell data model represents the number of sections, and the number of one-dimensional arrays in each two-dimensional array is equal to the number of sections The number of cells under the section corresponding to the two-dimensional array.
预先建立UITableView的代理的通用类(CommonDelegate),该CommonDelegate能够实现UITableView的代理协议的所有接口。The generic class (CommonDelegate) of the proxy of UITableView is pre-established, and the CommonDelegate can implement all interfaces of the proxy protocol of UITableView.
用户根据需要的cell样式和section样式创建新的cell类和section类,创建的cell类和section类实现上述预定义的cell协议和section协议。The user creates a new cell class and section class according to the required cell style and section style. The created cell class and section class implement the above-mentioned predefined cell protocol and section protocol.
按照上述方式,用户可以根据需要创建能够实现不同的cell样式和section样式的cell类和section类添加至预设的cell类的集合和section类的集合中。According to the above manner, the user can create a cell class and a section class capable of implementing different cell styles and section styles as needed to be added to a set of preset cell classes and a collection of section classes.
可选地,在一实施例中,该方法还包括如下步骤:Optionally, in an embodiment, the method further includes the following steps:
接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议; Receiving a cell class and a section class created based on the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组;Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
将创建的cell类和section类分别添加至cell类的集合和section类的集合中。Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
用户创建新的cell类和section类,继承UITableView,在cell类和section类的初始化中,将CommonDataSource和CommonDelegate对象对应地赋值给UITableView的数据源和代理,此外,用户为创建的每一个cell类和section类命名。The user creates a new cell class and section class, inherits the UITableView, and assigns the CommonDataSource and the CommonDelegate object to the UITableView data source and proxy correspondingly in the initialization of the cell class and the section class. In addition, the user creates each cell class and The section class is named.
用户如果需要创建新的列表视图,则获取待创建的列表视图的数据模型,组装该数据模型,得到cell的数据模型的二维数组和section数据模型的一维数组,并根据要展示的cell样式和section样式,从上述集合中选择合适的cell类和section类,将数据模型与选择的类的类名字段进行绑定,并且将cell的数据模型的二维数组和section数据模型的一维数组分别对应地赋值给上述建立的数据源的通用类中的初始二维数组和初始一维数组,则实现列表视图的创建,创建的列表视图的样式为其数据模型中的类名字段对应的cell类和section类的所实现的样式。If the user needs to create a new list view, the data model of the list view to be created is obtained, the data model is assembled, and a two-dimensional array of the data model of the cell and a one-dimensional array of the section data model are obtained, and according to the cell style to be displayed. And the section style, select the appropriate cell class and section class from the above set, bind the data model to the class name field of the selected class, and combine the two-dimensional array of the cell data model with the one-dimensional array of the section data model The initial two-dimensional array and the initial one-dimensional array in the general class of the data source established above are respectively assigned, and the list view is created. The style of the created list view is the cell corresponding to the class name field in the data model. The implemented style of the class and section class.
其中,实现UITableView的数据源协议中的cell相关的接口的方式如下:可以通过cell数据模型的二维数组获取到对应的cell的数据模型,通过数据模型中包含的类名字段找到对应的cell类或通过tableview对象和indexpath(索引路径)找到cell对象,然后调用预定义的cell协议。实现UITableView的数据源协议中的section相关的接口的方式如下:通过section数据模型的一维数组获取到对应的section的数据模型,通过数据模型中的类名字段找到对应的section类,然后调用预定义的section协议。通过这样的方式将UITableView的数据源和代理的接口在集合中的每一个cell类和section类中实现。包含列表的容器无需实现具体的实现方法,因此,也就不会出现在一个接口实现方法中写多个逻辑判断来处理不同的section和cell的问题,因此,不需要发布版本即可实现列表视图的更新。The method for implementing the cell-related interface in the data source protocol of the UITableView is as follows: the data model of the corresponding cell can be obtained through the two-dimensional array of the cell data model, and the corresponding cell class is found through the class name field included in the data model. Or find the cell object through the tableview object and indexpath (index path), and then call the predefined cell protocol. The way to implement the section-related interface in the data source protocol of UITableView is as follows: obtain the corresponding section data model through the one-dimensional array of the section data model, find the corresponding section class through the class name field in the data model, and then call the pre-pre The defined section protocol. In this way, the UITableView data source and proxy interface are implemented in each cell class and section class in the collection. The container containing the list does not need to implement a specific implementation method, so there is no problem of writing multiple logical decisions to handle different sections and cells in an interface implementation method. Therefore, the list view can be implemented without releasing the version. Update.
关于实现UITableView的代理协议中的cell相关的接口和section相关的接口的方式,与上述实现UITableView的数据源协议中的cell相关的接口和section相关的接口的方式相同,在此不再赘述。The manner of implementing the interface and the section-related interface in the proxy protocol of the UITableView is the same as that of the interface related to the cell in the data source protocol of the UITableView, and is not described here.
在该实施例中,如果用户想要对列表视图的样式进行修改,若上述集合中没有需要的cell类和section类,则只需根据需要的视图样式创建新的cell类和section类并存储到上述cell类的集合和section类的集合中,并解除该数据模型中原本绑定的类名字段,将新创建的cell类和section类的类名字段绑定到数据模型中,触发视图更新指令。或者,若上述集合中有需要的cell类和section类,则只需选择需要的cell类和section类,并将其类名字段更新绑定到该数据模型中,触发视图更新指令。 In this embodiment, if the user wants to modify the style of the list view, if there is no required cell class and section class in the above set, then only need to create a new cell class and section class according to the required view style and store it to In the collection of the cell class and the collection of the section class, the class name field originally bound in the data model is released, and the newly created cell class and the class name field of the section class are bound to the data model, and the view update instruction is triggered. . Alternatively, if there is a required cell class and section class in the above set, then only the required cell class and section class are selected, and the class name field update is bound to the data model, and the view update instruction is triggered.
该装置在接收到视图更新指令时,获取该视图更新指令对应的数据模型,从数据模型中获取绑定的类名字段,从预先创建的cell类的集合和section类的集合中查找与类名字段对应的cell类和section,根据数据模型和与类名字段对应的cell类和section类更新列表视图。When receiving the view update instruction, the device acquires the data model corresponding to the view update instruction, obtains the bound class name field from the data model, and searches for the class name from the set of the pre-created cell class and the set of the section class. The cell class and section corresponding to the segment update the list view according to the data model and the cell class and the section class corresponding to the class name field.
作为一种实施方式,根据数据模型和与类名字段对应的cell类和section类更新列表视图的步骤包括:As an implementation manner, the steps of updating the list view according to the data model and the cell class and the section class corresponding to the class name field include:
组装数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling a data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
由于上述集合中的cell类和section类初始化中,是将CommonDataSource和CommonDelegate对象对应地赋值给UITableView的数据源和代理,因此,在更新时,将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类即可。Since the cell class and the section class in the above set are initialized, the CommonDataSource and the CommonDelegate object are correspondingly assigned to the data source and the proxy of the UITableView. Therefore, when updating, the two-dimensional array and the section data model of the obtained cell data model are acquired. The one-dimensional array is assigned to the generic class of the data source.
本发明提出的列表视图的更新装置,预先创建有cell类的集合和section类的集合,在这些集合中的cell类可以实现预定义的cell协议,该cell协议中包含有UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口,将UITableView的数据源和代理的接口在集合中的每一个cell类和section类中实现,在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段,从上述集合中查找到与类名字段对应的cell类和section类,根据数据模型和与查找到的cell类和section类更新列表视图,不需要重新发布新版本的客户端即可实现对列表视图的界面效果进行动态地更新。The updating device of the list view proposed by the present invention pre-creates a set of a cell class and a set of a section class, and the cell class in the set can implement a predefined cell protocol, where the cell protocol includes a UITableView data source protocol. The cell interface, and the cell interface in the proxy protocol of the UITableView, the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol, and the UITableView data source and the proxy interface are in the set. Each of the cell class and the section class is implemented, and when receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model, from the foregoing set Find the cell class and section class corresponding to the class name field, update the list view according to the data model and the found cell class and section class, and realize the interface effect on the list view without re-publishing the new version of the client. Dynamically updated.
可选地,在其他的实施例中,列表视图更新程序还可以被分割为一个或者多个模块,一个或者多个模块被存储于存储器11中,并由一个或多个处理器(本实施例为处理器12)所执行,以完成本发明,本发明所称的模块是指能够完成特定功能的一系列计算机程序指令段。Optionally, in other embodiments, the list view update program may also be divided into one or more modules, one or more modules are stored in the memory 11 and are composed of one or more processors (this embodiment) Illustrated by processor 12) to accomplish the invention, a module as referred to herein refers to a series of computer program instructions that are capable of performing a particular function.
参照图2所示,为本发明列表视图的更新装置一实施例中的列表视图更新程序的功能模块示意图,列表视图更新程序可以被分割为获取模块10、查找模块20以及更新模块30,其中:Referring to FIG. 2, which is a functional block diagram of a list view update program in an embodiment of the update device of the list view of the present invention, the list view update program may be divided into an acquisition module 10, a lookup module 20, and an update module 30, where:
获取模块10用于:在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;The obtaining module 10 is configured to: when receiving the view update instruction, acquire a data model corresponding to the view update instruction, and obtain a class name field of the cell class and the section class from the data model;
查找模块20用于:从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述 section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;The searching module 20 is configured to: search a cell class and a section class corresponding to the class name field from a set of a pre-created cell class and a set of a section class, where the cell class implements a predefined cell protocol, and the section implements a predefined a section protocol, the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, The section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
更新模块30用于:根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。The update module 30 is configured to: update the list view according to the data model and the cell class and the section class corresponding to the class name field.
此外,本发明还提供一种IOS系统中列表视图的动态更新方法。参照图3所示,为本发明IOS系统中列表视图的动态更新方法第一实施例的流程图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。In addition, the present invention also provides a dynamic update method of a list view in an IOS system. Referring to FIG. 3, it is a flowchart of a first embodiment of a dynamic update method for a list view in an IOS system according to the present invention. The method can be performed by a device that can be implemented by software and/or hardware.
在本实施例中,IOS系统中列表视图的动态更新方法包括:In this embodiment, the dynamic update method of the list view in the IOS system includes:
步骤S10,在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;Step S10: When receiving the view update instruction, acquire a data model corresponding to the view update instruction, and obtain a class name field of the cell class and the section class from the data model;
步骤S20,从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;Step S20: Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol. The cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
步骤S30,根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。Step S30, updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
该实施例提供一种IOS系统下不需要发布新的客户端版本,即可实现客户端中的列表视图的更新的方案。在该实施例中,为了简化列表视图中的逻辑判断,实现对列表视图的动态更新,开发人员在进行软件开发时,预先定义好cell协议和section协议,作为后续创建的cell类和section类要实现的预定义cell协议和预定义section协议。This embodiment provides a solution for implementing the update of the list view in the client without releasing a new client version in the IOS system. In this embodiment, in order to simplify the logic judgment in the list view and realize the dynamic update of the list view, the developer pre-defines the cell protocol and the section protocol in the software development, as the subsequently created cell class and section class. Implemented predefined cell protocols and predefined section protocols.
该实施例中,预先定义cell协议,包括定义列表视图的数据源(datasource)和代理(delegate)中所有和cell相关的新接口,新接口包含cell数据源、cell对应的位置以及列表视图对象;所有的cell类实现该协议。预先定义section协议,包括定义列表视图的数据源和代理中所有和section相关的新接口,新接口包含section数据源、section对应的位置以及tableview(列表视图)对象;所有的section实现该协议。In this embodiment, the cell protocol is defined in advance, including defining a data source (datasource) of the list view and all new interfaces related to the cell in the proxy, the new interface including the cell data source, the location corresponding to the cell, and the list view object; All cell classes implement this protocol. The section protocol is pre-defined, including defining the data source of the list view and all new sections related to the section in the proxy. The new interface includes the section data source, the location corresponding to the section, and the tableview object; all sections implement the protocol.
预先建立UITableView的数据源的通用类(CommonDataSource)。该CommonDataSource中包含有cell数据模型的初始二维数组和section数据模型的初始一维数组,并且能够实现UITableView的数据源协议的所有接口。所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。A generic class (CommonDataSource) of the data source of the UITableView is pre-established. The CommonDataSource contains the initial two-dimensional array of the cell data model and the initial one-dimensional array of the section data model, and can implement all interfaces of the UITableView data source protocol. The number of one-dimensional arrays of the section data model represents the number of sections, and the number of two-dimensional arrays of the cell data model represents the number of sections, and the number of one-dimensional arrays in each two-dimensional array is equal to the number of sections The number of cells under the section corresponding to the two-dimensional array.
预先建立UITableView的代理的通用类(CommonDelegate),该CommonDelegate能够实现UITableView的代理协议的所有接口。The generic class (CommonDelegate) of the proxy of UITableView is pre-established, and the CommonDelegate can implement all interfaces of the proxy protocol of UITableView.
用户根据需要的cell样式和section样式创建新的cell类和section类,创建的cell类和section类实现上述预定义的cell协议和section协议。 The user creates a new cell class and section class according to the required cell style and section style. The created cell class and section class implement the above-mentioned predefined cell protocol and section protocol.
按照上述方式,用户可以根据需要创建能够实现不同的cell样式和section样式的cell类和section类添加至预设的cell类的集合和section类的集合中。According to the above manner, the user can create a cell class and a section class capable of implementing different cell styles and section styles as needed to be added to a set of preset cell classes and a collection of section classes.
可选地,在一实施例中,处理器12还用于执行所述列表视图更新程序,以实现如下步骤:Optionally, in an embodiment, the processor 12 is further configured to execute the list view update procedure to implement the following steps:
接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议;Receiving a cell class and a section class created based on the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组;Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
将创建的cell类和section类分别添加至cell类的集合和section类的集合中。Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
用户创建新的cell类和section类,继承UITableView,在cell类和section类的初始化中,将CommonDataSource和CommonDelegate对象对应地赋值给UITableView的数据源和代理,此外,用户为创建的每一个cell类和section类命名。The user creates a new cell class and section class, inherits the UITableView, and assigns the CommonDataSource and the CommonDelegate object to the UITableView data source and proxy correspondingly in the initialization of the cell class and the section class. In addition, the user creates each cell class and The section class is named.
用户如果需要创建新的列表视图,则获取待创建的列表视图的数据模型,组装该数据模型,得到cell的数据模型的二维数组和section数据模型的一维数组,并根据要展示的cell样式和section样式,从上述集合中选择合适的cell类和section类,将数据模型与选择的类的类名字段进行绑定,并且将cell的数据模型的二维数组和section数据模型的一维数组分别对应地赋值给上述建立的数据源的通用类中的初始二维数组和初始一维数组,则实现列表视图的创建,创建的列表视图的样式为其数据模型中的类名字段对应的cell类和section类的所实现的样式。If the user needs to create a new list view, the data model of the list view to be created is obtained, the data model is assembled, and a two-dimensional array of the data model of the cell and a one-dimensional array of the section data model are obtained, and according to the cell style to be displayed. And the section style, select the appropriate cell class and section class from the above set, bind the data model to the class name field of the selected class, and combine the two-dimensional array of the cell data model with the one-dimensional array of the section data model The initial two-dimensional array and the initial one-dimensional array in the general class of the data source established above are respectively assigned, and the list view is created. The style of the created list view is the cell corresponding to the class name field in the data model. The implemented style of the class and section class.
其中,实现UITableView的数据源协议中的cell相关的接口的方式如下:可以通过cell数据模型的二维数组获取到对应的cell的数据模型,通过数据模型中包含的类名字段找到对应的cell类或通过tableview对象和indexpath(索引路径)找到cell对象,然后调用预定义的cell协议。实现UITableView的数据源协议中的section相关的接口的方式如下:通过section数据模型的一维数组获取到对应的section的数据模型,通过数据模型中的类名字段找到对应的section类,然后调用预定义的section协议。通过这样的方式将UITableView的数据源和代理的接口在集合中的每一个cell类和section类中实现。包含列表的容器无需实现具体的实现方法,因此,也就不会出现在一个接口实现方法中写多个逻辑判断来处理不同的section和cell的问题,因此,不需要发布版本即可实现列表视图的更新。The method for implementing the cell-related interface in the data source protocol of the UITableView is as follows: the data model of the corresponding cell can be obtained through the two-dimensional array of the cell data model, and the corresponding cell class is found through the class name field included in the data model. Or find the cell object through the tableview object and indexpath (index path), and then call the predefined cell protocol. The way to implement the section-related interface in the data source protocol of UITableView is as follows: obtain the corresponding section data model through the one-dimensional array of the section data model, find the corresponding section class through the class name field in the data model, and then call the pre-pre The defined section protocol. In this way, the UITableView data source and proxy interface are implemented in each cell class and section class in the collection. The container containing the list does not need to implement a specific implementation method, so there is no problem of writing multiple logical decisions to handle different sections and cells in an interface implementation method. Therefore, the list view can be implemented without releasing the version. Update.
关于实现UITableView的代理协议中的cell相关的接口和section相关的接口的方式,与上述实现UITableView的数据源协议中的cell相关的接口和section相关的接口的方式相同,在此不再赘述。The manner of implementing the interface and the section-related interface in the proxy protocol of the UITableView is the same as that of the interface related to the cell in the data source protocol of the UITableView, and is not described here.
在该实施例中,如果用户想要对列表视图的样式进行修改,若上述集合 中没有需要的cell类和section类,则只需根据需要的视图样式创建新的cell类和section类并存储到上述cell类的集合和section类的集合中,并解除该数据模型中原本绑定的类名字段,将新创建的cell类和section类的类名字段绑定到数据模型中,触发视图更新指令。或者,若上述集合中有需要的cell类和section类,则只需选择需要的cell类和section类,并将其类名字段更新绑定到该数据模型中,触发视图更新指令。In this embodiment, if the user wants to modify the style of the list view, if the above set There is no required cell class and section class, just create a new cell class and section class according to the required view style and store it in the collection of the above cell class and the collection of the section class, and unbind the original binding in the data model. The class name field binds the newly created cell class and the class name field of the section class to the data model, triggering the view update instruction. Alternatively, if there is a required cell class and section class in the above set, then only the required cell class and section class are selected, and the class name field update is bound to the data model, and the view update instruction is triggered.
服务器在接收到视图更新指令时,获取该视图更新指令对应的数据模型,从数据模型中获取绑定的类名字段,从预先创建的cell类的集合和section类的集合中查找与类名字段对应的cell类和section,根据数据模型和与类名字段对应的cell类和section类更新列表视图。When receiving the view update instruction, the server obtains the data model corresponding to the view update instruction, obtains the bound class name field from the data model, and searches for the class name field from the set of the pre-created cell class and the set of the section class. The corresponding cell class and section update the list view according to the data model and the cell class and section class corresponding to the class name field.
作为一种实施方式,根据数据模型和与类名字段对应的cell类和section类更新列表视图的步骤包括:As an implementation manner, the steps of updating the list view according to the data model and the cell class and the section class corresponding to the class name field include:
组装数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling a data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
由于上述集合中的cell类和section类初始化中,是将CommonDataSource和CommonDelegate对象对应地赋值给UITableView的数据源和代理,因此,在更新时,将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类即可。Since the cell class and the section class in the above set are initialized, the CommonDataSource and the CommonDelegate object are correspondingly assigned to the data source and the proxy of the UITableView. Therefore, when updating, the two-dimensional array and the section data model of the obtained cell data model are acquired. The one-dimensional array is assigned to the generic class of the data source.
本发明提出的列表视图的更新方法,预先创建有cell类的集合和section类的集合,在这些集合中的cell类可以实现预定义的cell协议,该cell协议中包含有UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口,将UITableView的数据源和代理的接口在集合中的每一个cell类和section类中实现,在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段,从上述集合中查找到与类名字段对应的cell类和section类,根据数据模型和与查找到的cell类和section类更新列表视图,不需要重新发布新版本的客户端即可实现对列表视图的界面效果进行动态地更新。The update method of the list view proposed by the present invention pre-creates a set of a cell class and a set of a section class, and the cell class in the set can implement a predefined cell protocol, where the cell protocol includes a UITableView data source protocol. The cell interface, and the cell interface in the proxy protocol of the UITableView, the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol, and the UITableView data source and the proxy interface are in the set. Each of the cell class and the section class is implemented, and when receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model, from the foregoing set Find the cell class and section class corresponding to the class name field, update the list view according to the data model and the found cell class and section class, and realize the interface effect on the list view without re-publishing the new version of the client. Dynamically updated.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有列表视图更新程序,所述列表视图更新程序可被至少一个处理器执行,以实现如下操作:In addition, an embodiment of the present invention further provides a computer readable storage medium, where the list view update program is stored on the computer readable storage medium, and the list view update program may be executed by at least one processor to implement the following operations:
在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;After receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model;
从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现 预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;Searching for the cell class and the section class corresponding to the class name field from the set of the pre-created cell class and the set of the section class, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol, the cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, the section protocol including a section interface and the proxy protocol in the data source protocol Section interface
根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。Updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
进一步地,所述列表视图更新程序被处理器执行时还实现如下操作:Further, when the list view update program is executed by the processor, the following operations are also implemented:
接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议;Receiving a cell class and a section class created based on the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组;Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
将创建的cell类和section类分别添加至cell类的集合和section类的集合中。Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
进一步地,所述列表视图更新程序被处理器执行时还实现如下操作:Further, when the list view update program is executed by the processor, the following operations are also implemented:
组装所述数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling the data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
需要说明的是,上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that the foregoing serial numbers of the embodiments of the present invention are only for the description, and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising", or any other variations thereof are intended to encompass a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a plurality of elements includes not only those elements but also Other elements listed, or elements that are inherent to such a process, device, item, or method. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, the device, the item, or the method that comprises the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种IOS系统中列表视图的更新装置,其特征在于,所述装置包括存储器和处理器,所述存储器上存储有可在所述处理器上运行的列表视图更新程序,所述列表视图更新程序被所述处理器执行时实现如下步骤:An apparatus for updating a list view in an IOS system, the apparatus comprising a memory and a processor, wherein the memory stores a list view update program executable on the processor, the list view update program The following steps are implemented when executed by the processor:
    在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;After receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model;
    从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol, The cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
    根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。Updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
  2. 根据权利要求1所述的IOS系统中列表视图的更新装置,其特征在于,所述处理器还用于执行所述列表视图更新程序,以实现如下步骤:The apparatus for updating a list view in the IOS system according to claim 1, wherein the processor is further configured to execute the list view update program to implement the following steps:
    接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议;Receiving a cell class and a section class created based on the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
    获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组;Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
    初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
    将创建的cell类和section类分别添加至cell类的集合和section类的集合中。Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
  3. 根据权利要求2所述的IOS系统中列表视图的更新装置,其特征在于,所述根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图的步骤包括:The apparatus for updating a list view in the IOS system according to claim 2, wherein the step of updating the list view according to the data model and the cell class and the section class corresponding to the class name field comprises:
    组装所述数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling the data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
    将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  4. 根据权利要求1至3中任一项所述的IOS系统中列表视图的更新装置,其特征在于,所述cell接口中包括cell数据源、cell对应的位置以及列表视图对象;所述section接口包括section数据源、section对应的位置以及列表视图对象。 The apparatus for updating a list view in the IOS system according to any one of claims 1 to 3, wherein the cell interface includes a cell data source, a location corresponding to the cell, and a list view object; the section interface includes The section data source, the location corresponding to the section, and the list view object.
  5. 根据权利要求1所述的IOS系统中列表视图的更新装置,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。The apparatus for updating a list view in the IOS system according to claim 1, wherein the number of one-dimensional arrays of the section data model indicates the number of sections, and the number of two-dimensional arrays of the cell data model Indicates the number of sections. The number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
  6. 根据权利要求2所述的IOS系统中列表视图的更新装置,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。The apparatus for updating a list view in the IOS system according to claim 2, wherein the number of one-dimensional arrays of the section data model indicates the number of sections, and the number of two-dimensional arrays of the cell data model Indicates the number of sections. The number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
  7. 根据权利要求3所述的IOS系统中列表视图的更新装置,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。The apparatus for updating a list view in the IOS system according to claim 3, wherein the number of one-dimensional arrays of the section data model indicates the number of sections, and the number of two-dimensional arrays of the cell data model Indicates the number of sections. The number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
  8. 一种IOS系统中列表视图的动态更新方法,其特征在于,所述方法包括:A method for dynamically updating a list view in an IOS system, the method comprising:
    在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;After receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model;
    从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口;Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol, The cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
    根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。Updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
  9. 根据权利要求8所述的IOS系统中列表视图的动态更新方法,其特征在于,所述方法还包括:The method for dynamically updating a list view in the IOS system according to claim 8, wherein the method further comprises:
    接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议;Receiving a cell class and a section class created based on the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
    获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组;Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
    初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
    将创建的cell类和section类分别添加至cell类的集合和section类的集合中。 Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
  10. 根据权利要求8所述的IOS系统中列表视图的动态更新方法,其特征在于,所述根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图的步骤包括:The method for dynamically updating a list view in the IOS system according to claim 8, wherein the step of updating the list view according to the data model and the cell class and the section class corresponding to the class name field comprises:
    组装所述数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling the data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
    将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  11. 根据权利要求8至10中任一项所述的IOS系统中列表视图的动态更新方法,其特征在于,所述cell接口中包括cell数据源、cell对应的位置以及列表视图对象;所述section接口包括section数据源、section对应的位置以及列表视图对象。The dynamic update method of the list view in the IOS system according to any one of claims 8 to 10, wherein the cell interface includes a cell data source, a location corresponding to the cell, and a list view object; It includes the section data source, the location corresponding to the section, and the list view object.
  12. 根据权利要求8所述的IOS系统中列表视图的动态更新方法,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。The method for dynamically updating a list view in the IOS system according to claim 8, wherein the number of one-dimensional arrays of the section data model represents the number of sections, and the two-dimensional array of the cell data model The number represents the number of sections, and the number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
  13. 根据权利要求9所述的IOS系统中列表视图的动态更新方法,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。The method for dynamically updating a list view in the IOS system according to claim 9, wherein the number of one-dimensional arrays of the section data model represents the number of sections, and the two-dimensional array of the cell data model The number represents the number of sections, and the number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
  14. 根据权利要求10所述的IOS系统中列表视图的动态更新方法,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。The method for dynamically updating a list view in the IOS system according to claim 10, wherein the number of one-dimensional arrays of the section data model represents the number of sections, and the two-dimensional array of the cell data model The number represents the number of sections, and the number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有列表视图更新程序,所述列表视图更新程序可被至少一个处理器执行,以实现如下步骤:A computer readable storage medium, wherein the computer readable storage medium stores a list view update program, and the list view update program is executable by at least one processor to implement the following steps:
    在接收到视图更新指令时,获取所述视图更新指令对应的数据模型,从所述数据模型中获取cell类和section类的类名字段;After receiving the view update instruction, acquiring a data model corresponding to the view update instruction, and acquiring a class name field of the cell class and the section class from the data model;
    从预先创建的cell类的集合和section类的集合中查找与所述类名字段对应的cell类和section类,其中,cell类实现预定义的cell协议,section实现预定义的section协议,所述cell协议包括UITableView的数据源协议中的cell接口,以及UITableView的代理协议中的cell接口,所述section协议包括所述数据源协议中的section接口和所述代理协议中的section接口; Searching for a cell class and a section class corresponding to the class name field from a set of pre-created cell classes and a set of section classes, wherein the cell class implements a predefined cell protocol, and the section implements a predefined section protocol, The cell protocol includes a cell interface in a data source protocol of the UITableView, and a cell interface in a proxy protocol of the UITableView, where the section protocol includes a section interface in the data source protocol and a section interface in the proxy protocol;
    根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图。Updating the list view according to the data model and the cell class and the section class corresponding to the class name field.
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器还用于执行所述列表视图更新程序,以实现如下步骤:The computer readable storage medium according to claim 15, wherein the processor is further configured to execute the list view update program to implement the following steps:
    接收基于所述UITableView创建的cell类和section类,所述cell类实现预定义的cell协议,所述section类实现预定义的section协议;Receiving a cell class and a section class created based on the UITableView, where the cell class implements a predefined cell protocol, and the section class implements a predefined section protocol;
    获取预先设置的数据源的通用类和代理的通用类,所述数据源的通用类包含cell数据模型的初始二维数组和section数据模型的初始一维数组;Obtaining a generic class of a pre-set data source and a generic class of the proxy, the generic class of the data source comprising an initial two-dimensional array of the cell data model and an initial one-dimensional array of the section data model;
    初始化所述cell类和section类,将所述数据源的通用类和代理的通用类对象赋值给所述UITableView的数据源和代理;Initializing the cell class and the section class, and assigning the generic class of the data source and the generic class object of the proxy to the data source and the proxy of the UITableView;
    将创建的cell类和section类分别添加至cell类的集合和section类的集合中。Add the created cell class and section class to the collection of the cell class and the collection of the section class respectively.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述根据所述数据模型和与所述类名字段对应的cell类和section类更新列表视图的步骤包括:The computer readable storage medium according to claim 16, wherein the step of updating the list view according to the data model and the cell class and the section class corresponding to the class name field comprises:
    组装所述数据模型,以获取cell数据模型的二维数组和section数据模型的一维数组;Assembling the data model to obtain a two-dimensional array of cell data models and a one-dimensional array of section data models;
    将获取的cell数据模型的二维数组和section数据模型的一维数组赋值给所述数据源的通用类,以按照与所述类名字段对应的cell类和section类更新列表视图。A two-dimensional array of the acquired cell data model and a one-dimensional array of the section data model are assigned to the general class of the data source to update the list view according to the cell class and the section class corresponding to the class name field.
  18. 根据权利要求15至17中任一项所述的计算机可读存储介质,其特征在于,所述cell接口中包括cell数据源、cell对应的位置以及列表视图对象;所述section接口包括section数据源、section对应的位置以及列表视图对象。The computer readable storage medium according to any one of claims 15 to 17, wherein the cell interface includes a cell data source, a location corresponding to the cell, and a list view object; the section interface includes a section data source. , the location of the section, and the list view object.
  19. 根据权利要求15至16任一项所述的计算机可读存储介质,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。The computer readable storage medium according to any one of claims 15 to 16, wherein the number of one-dimensional arrays of the section data model represents the number of sections, and the two-dimensional array of the cell data model The number represents the number of sections, and the number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
  20. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述section数据模型的一维数组的个数表示section的个数,所述cell数据模型的二维数组的个数表示section的个数,每个二维数组中一维数组的个数等于该二维数组对应的section下的cell的个数。 The computer readable storage medium according to claim 17, wherein the number of one-dimensional arrays of the section data model represents the number of sections, and the number of two-dimensional arrays of the cell data model represents a section The number of one-dimensional arrays in each two-dimensional array is equal to the number of cells in the section corresponding to the two-dimensional array.
PCT/CN2017/105015 2017-08-31 2017-09-30 Updating device and method for list view and computer-readable storage medium WO2019041441A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2019041441A1 true WO2019041441A1 (en) 2019-03-07

Family

ID=61128940

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105015 WO2019041441A1 (en) 2017-08-31 2017-09-30 Updating device and method for list view and computer-readable storage medium

Country Status (2)

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

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109582193B (en) * 2018-11-30 2021-01-29 北京微播视界科技有限公司 Control display method of item cells in list management group and electronic equipment
CN109829124B (en) * 2018-12-28 2021-09-21 浙江口碑网络技术有限公司 Display method and device for list page of client
CN109977164A (en) * 2019-04-01 2019-07-05 时代数媒科技股份有限公司 A kind of mobile terminal list development approach based on data-driven
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)
CN113778401A (en) * 2021-01-05 2021-12-10 北京沃东天骏信息技术有限公司 Page generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN106855794A (en) * 2015-12-08 2017-06-16 平安科技(深圳)有限公司 The data sharing method and system being applied between many objects of IOS
US9721041B2 (en) * 2015-01-21 2017-08-01 Sap Se Configurable data analysis using a configuration model

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10291729B2 (en) * 2014-01-21 2019-05-14 Apptimize, Inc. User interface modification and usage tracking
CN105677366B (en) * 2016-02-26 2019-01-11 四川长虹电器股份有限公司 The method that Infinite Cyclic rolls selection is realized based on UITableView in iOS system
CN106502674A (en) * 2016-10-21 2017-03-15 武汉斗鱼网络科技有限公司 Grid display packing and device in a kind of List View

Patent Citations (4)

* 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
CN106855794A (en) * 2015-12-08 2017-06-16 平安科技(深圳)有限公司 The data sharing method and system being applied between many objects of 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

Also Published As

Publication number Publication date
CN107656729A (en) 2018-02-02
CN107656729B (en) 2020-04-28

Similar Documents

Publication Publication Date Title
WO2019041441A1 (en) Updating device and method for list view and computer-readable storage medium
US20200073987A1 (en) Technologies for runtime selection of query execution engines
WO2020015166A1 (en) Charting component creation method and device and computer readable storage medium
CN108228119B (en) Printing method based on HXML, terminal equipment and storage medium
US10088980B2 (en) Method and system for providing menu data for mobile applications
CN111090437B (en) Application deployment method and device and computer readable storage medium
WO2020151333A1 (en) Page loading method, apparatus, computer device and storage medium
WO2019148722A1 (en) Electronic device, data migrating and calling method and storage medium
JP2019503538A (en) Method and apparatus for presenting interface data
US8627274B2 (en) Software tool and method for generating a virtual appliance
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
US9898259B2 (en) Data binding for model-based code generation
US20220300698A1 (en) Techniques for web framework detection
WO2020015170A1 (en) Interface invoking method and apparatus, and computer-readable storage medium
CN110941779A (en) Page loading method and device, storage medium and electronic equipment
EP2951678B1 (en) Remotely executing operations of an application using a schema that provides for executable scripts in a nodal hierarchy
WO2019071898A1 (en) Electronic device, database query script generation method and storage medium
WO2019136813A1 (en) Api file management method, server, and storage medium
CN111625221B (en) Version control method, device, equipment and medium applied to integrated development environment
WO2017067459A1 (en) Desktop data loading method and device
US8442980B2 (en) Attribute change coalescing in order to deal with component moves on a page
US9779387B2 (en) Business-to-business document user interface and integration design
US11017032B1 (en) Document recovery utilizing serialized data
US11599398B2 (en) Method for combining unified matters in personal workspace and system using the same
US20140365542A1 (en) Data processing system and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17923214

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17923214

Country of ref document: EP

Kind code of ref document: A1