CN109918035A - A kind of iOS client is to the managing device for having multiple agencies - Google Patents

A kind of iOS client is to the managing device for having multiple agencies Download PDF

Info

Publication number
CN109918035A
CN109918035A CN201910034207.3A CN201910034207A CN109918035A CN 109918035 A CN109918035 A CN 109918035A CN 201910034207 A CN201910034207 A CN 201910034207A CN 109918035 A CN109918035 A CN 109918035A
Authority
CN
China
Prior art keywords
behalf
unit lattice
general
realization device
realization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910034207.3A
Other languages
Chinese (zh)
Inventor
周蜜蜜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guiyang Longmaster Information and Technology Co ltd
Original Assignee
Guiyang Longmaster Information and Technology Co ltd
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 Guiyang Longmaster Information and Technology Co ltd filed Critical Guiyang Longmaster Information and Technology Co ltd
Publication of CN109918035A publication Critical patent/CN109918035A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to Internet technical fields, and in particular to a kind of iOS client to the managing device for having multiple agencies.The managing device includes: manager, for receiving the data content and data display type corresponding with data content etc. of server transmission;Substantially realization device is acted on behalf of, for according to the specified of manager, realizing the general-purpose attribute etc. of the corresponding unit lattice in corresponding views when manager refreshes view;Realization device is acted on behalf of in succession, for inheriting the general-purpose attribute for acting on behalf of realization device substantially, and when manager refreshes view, according to the specified of manager, realizes general-purpose attribute and particular attribute of the corresponding unit lattice in corresponding views etc. respectively.The device can be used for carrying out Classification Management to the multiple agent apparatus or system of iOS client, it can be achieved that write at one, can be used everywhere, and the code legibility write is strong and other effects.

Description

A kind of iOS client is to the managing device for having multiple agencies
Technical field
The invention belongs to Internet technical fields, and in particular to fill to a kind of iOS client to the management for having multiple agencies It sets.
Background technique
IOS is the Mobile operating system developed by Apple Inc..When writing iOS correlative code, if using a control Part then needs to call its various Proxy Methods, and each Proxy Method is that different things is done according to different types, if be placed on As soon as UIViewController (view controller) is inner, one page (or even an agency) will appear several hundred thousands of row generations Code, code is various mixed and disorderly, causes code to read difficultly, modifies trouble, reduce the readability of code, subsequent code Update, iteration also may require that and expend a great deal of time, and keep the development cycle elongated.
Summary of the invention
In order to solve the above technical problem, the present invention provides a kind of iOS clients to the managing device for having multiple agencies, can Classification Management is carried out for the multiple agent apparatus or system to iOS client.The embodiment of the present invention can be Simple more than ten or tens line codes are only needed in UIViewController, required function can be realized, later Very easy code can be checked in iteration, and can be realized and be write at one, can be used everywhere, and the code legibility write is equivalent by force Fruit.
The invention provides the following technical scheme:
A kind of iOS client is provided in the embodiment of the present invention to the managing device for there are multiple agencies comprising:
Manager is arranged in view controller, for receiving the data content and and data content of server transmission Corresponding data display type, and according to the data content and data display type corresponding with data content, it is corresponding Corresponding unit lattice in view, which specify specifically to act on behalf of realization device substantially and/or inherit, acts on behalf of realization device, in turn, in institute It states in the corresponding unit lattice in view and the data content is shown with corresponding data display type;
Substantially realization device is acted on behalf of, is arranged in manager, is used for when manager refreshes view, according to the finger of manager It is fixed, realize the general-purpose attribute of the corresponding unit lattice in corresponding views;The general-purpose attribute includes that data display type is identical more The shared data display properties of a cell;
Realization device is acted on behalf of in succession, is arranged in manager, for inheriting the general-purpose attribute for acting on behalf of realization device substantially, and When manager refreshes view, according to the specified of manager, the general-purpose attribute of the corresponding unit lattice in corresponding views is realized respectively And particular attribute;The particular attribute includes other data display properties in addition to general-purpose attribute of corresponding unit lattice.
Preferably, the view controller, for managing the load of data, the display and unloading of view, and be responsible for and its The communication and coordination of his view controller.
Preferably, the manager and the view correspond.
Preferably, the quantity at least two for acting on behalf of realization device substantially of each manager.
Further, the quantity at least two of realization device is acted on behalf of in the succession of each manager, and each succession is acted on behalf of Realization device at least inherits the general-purpose attribute for acting on behalf of realization device substantially.
The iOS client of the embodiment of the present invention can be used for the multiple of iOS client the managing device for having multiple agencies Agent apparatus or system carry out Classification Management.It is that a basic generation is arranged to multiple cells of general-purpose attribute having the same Manage realization device, for multiple cell different particular attributes be respectively set again it is corresponding succession act on behalf of realization device, And the cell in view will specifically show what data content and data display type, be to refresh view by manager as the view Figure specifies specifically to act on behalf of realization device substantially or inherit and acts on behalf of realization device and realize.That is the embodiment of the present invention can be Simple more than ten or tens line codes are only needed in UIViewController (Video Controller), and required function can be realized Can, very easy code can be checked in later iteration, had by inheriting to act on behalf of realization device and be readily seen in this list How many seed type.And it can realize and be write at one, be can be used everywhere, and the code legibility write is strong and other effects.
Detailed description of the invention
It, below will be to the present invention or the prior art in order to illustrate more clearly of the present invention or technical solution in the prior art Attached drawing needed in description is briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention Some embodiments for those of ordinary skill in the art without any creative labor, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is positional relationship of the iOS client in one embodiment of the present invention to the managing device for having multiple agencies Schematic diagram;
Fig. 2 is that iOS client shown in FIG. 1 realizes dress to manager, basic agency in the managing device for having multiple agencies It sets, inherit and act on behalf of the associated relation schematic diagram such as realization device and each view.
Specific embodiment
Below in conjunction with the attached drawing in the present invention, technical solution of the present invention is clearly and completely described, it is clear that Described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, originally Field those of ordinary skill every other embodiment obtained without making creative work, belongs to the present invention The range of protection.
A kind of iOS client as shown in Figure 1 is to the managing device for having multiple agencies comprising:
Manager is arranged in view controller, for receiving the data content and and data content of server transmission Corresponding data display type, and according to the data content and data display type corresponding with data content, it is corresponding Corresponding unit lattice in view, which specify specifically to act on behalf of realization device substantially and/or inherit, acts on behalf of realization device, in turn, in institute It states in the corresponding unit lattice in view and the data content is shown with corresponding data display type;
Substantially realization device is acted on behalf of, is arranged in manager, is used for when manager refreshes view, according to the finger of manager It is fixed, realize the general-purpose attribute of the corresponding unit lattice in corresponding views;The general-purpose attribute includes that data display type is identical more The shared data display properties of a cell;
Realization device is acted on behalf of in succession, is arranged in manager, for inheriting the general-purpose attribute for acting on behalf of realization device substantially, and When manager refreshes view, according to the specified of manager, the general-purpose attribute of the corresponding unit lattice in corresponding views is realized respectively And particular attribute;The particular attribute includes other data display properties in addition to general-purpose attribute of corresponding unit lattice.
It is described to act on behalf of realization device substantially, some general-purpose attributes can be realized by acting on behalf of implementation method substantially.General category Property refers to the shared data display properties of multiple cells (at least two).Such as: if the height of multiple cells is all identical, (height can The referred to as general-purpose attribute of these cells), then it can will be realized with identical high cell by acting on behalf of realization device substantially High all identical general-purpose attribute.
Realization device is acted on behalf of in the succession, can be inherited and be acted on behalf of the basic Proxy Method of realization device substantially and (can pass through Coding carries out realizing specific succession), and then realize general-purpose attribute, it is also possible to have the peculiar agency of corresponding unit lattice Method, and then realize the particular attribute of corresponding unit lattice.The particular attribute includes corresponding unit lattice in addition to general-purpose attribute Other data display properties.Such as: if the font size of each cell is different from, the font of each table unit lattice Specific size is the particular attribute of corresponding unit lattice.
The iOS client of the embodiment of the present invention can be used for the multiple of iOS client the managing device for having multiple agencies Agent apparatus or system carry out Classification Management.It is that a basic generation is arranged to multiple cells of general-purpose attribute having the same Manage realization device, for multiple cell different particular attributes be respectively set again it is corresponding succession act on behalf of realization device, And the cell in view will specifically show what data content and data display type, be to refresh view by manager as the view Figure specifies specifically to act on behalf of realization device substantially or inherit and acts on behalf of realization device and realize.That is the embodiment of the present invention can be Simple more than ten or tens line codes are only needed in UIViewController (Video Controller), and required function can be realized Can, very easy code can be checked in later iteration, had by inheriting to act on behalf of realization device and be readily seen in this list How many seed type.And it can realize and be write at one, be can be used everywhere, and the code legibility write is strong and other effects.
The embodiment of the present invention act on behalf of substantially realization device and inherit act on behalf of realization device be it is opposite, be one agency When realization device inherits the data display properties that another acts on behalf of cell achieved by realization device, the former is to inherit Realization device is acted on behalf of, the latter as acts on behalf of realization device substantially, and the data display properties of cell achieved by the latter is General-purpose attribute.When one is acted on behalf of realization device substantially inherits the general-purpose attribute that another acts on behalf of realization device substantially, the former It is referred to as inheriting and acts on behalf of realization device;Realization device is acted on behalf of when a succession, and realization device succession is acted on behalf of by another succession When, the former is referred to as acting on behalf of realization device substantially.
The iOS client is in the managing device for having multiple agencies, the view controller (UIViewController), for managing the load of data, the display and unloading of view, and it is responsible for and other view controllers Communication and coordination.View controller manages the display of the loads of data, view, usually can be according to managing in view controller Device carries out, and is to refresh view by manager specifically to act on behalf of realization device or succession substantially for the cell in the view is specified It acts on behalf of realization device and realizes the load of image, display.
Based on iOS client shown in FIG. 1 to the managing device for having multiple agencies, as shown in Figure 2, wherein the view Quantity can have an one or more, the manager and the view correspond.One manager can manage one or The multiple views of person, usually manager and the view correspond.
Further, as shown in Fig. 2, the quantity at least two for acting on behalf of realization device substantially of each manager.
Different realization devices of acting on behalf of substantially can be parallel relation, be between multiple cells with different general When attribute, it can be set and multiple act on behalf of realization device substantially.Such as: the general category that cell 1, cell 2, cell 3 have Property be cell row Gao Xiangtong, the general-purpose attribute that cell 4, cell 5, cell 6 have be cell in show number It is identical according to size, then can be set two and act on behalf of realization device substantially, first act on behalf of substantially realization device realize cell 1, The high identical general-purpose attribute of row of cell 2, cell 3, acts on behalf of realization device for second substantially and realizes cell 4, cell 5, the identical general-purpose attribute of size of data shown in the cell of cell 6.
Different realization devices of acting on behalf of substantially can be vertical relation, is one and acts on behalf of realization device substantially and inherit One is acted on behalf of the general-purpose attribute of realization device substantially, meanwhile, this is acted on behalf of realization device substantially and inherits agency's realization dress by other again Set and inherited, at this point, this act on behalf of substantially realization device be referred to as inherit act on behalf of realization device.Such as: third basic generation Reason realization device inherits first general-purpose attribute (the high identical general-purpose attribute of the row of cell) for acting on behalf of realization device substantially, It is that the size of data that shows in cell is identical that this acts on behalf of general-purpose attribute that realization device can also be realized substantially simultaneously, i.e., with the Three are acted on behalf of the corresponding cell of realization device substantially that the size of data shown in row Gao Xiangtong and cell may be implemented are identical. And the 4th succession acts on behalf of realization device and inherits general-purpose attribute (row Gao Xiangtong, display that third acts on behalf of realization device substantially The identical general-purpose attribute of size of data).Therefore third acts on behalf of realization device substantially and (or is known as inheriting agency and realizes dress Set) it with the relationship that first is acted on behalf of realization device is substantially vertical.
Further, the quantity at least two of realization device is acted on behalf of in the succession of each manager, and each succession is acted on behalf of Realization device at least inherits the general-purpose attribute for acting on behalf of realization device substantially.
Realization device is acted on behalf of in succession can inherit the general-purpose attribute for acting on behalf of realization device substantially, can also inherit simultaneously Multiple general-purpose attributes for acting on behalf of realization device substantially.Such as: the row of cell 7 it is high with cell 1, cell 2, cell 3 Row Gao Xiangtong, the size of data and the size of data phase of the display of cell 4, cell 5, cell 6 of the display of cell 7 Together, then succession corresponding with cell 7 acts on behalf of realization device and can inherit above-mentioned first simultaneously and acts on behalf of realization device substantially Act on behalf of the general-purpose attribute of realization device substantially with second.
Further, the iOS client is in the managing device for having multiple agencies, in the realization corresponding views The general-purpose attribute of corresponding unit lattice, the row to realize corresponding unit lattice are high all identical.
The particular attribute of corresponding unit lattice in the realization corresponding views, to realize the data shown in corresponding unit lattice Color;
Or to realize the data font type shown in corresponding unit lattice;
Or to realize the size of data shown in corresponding unit lattice.
Certainly, the general-purpose attribute for realizing table view, or realize the size of data shown in corresponding unit lattice.
In preferred embodiment, background: it is currently supermarket's commodity interface, needs to show daily necessities, beverage, condiment, life It is fresh.It is required that being: the row Gao Xiangtong of the daily necessities of display, beverage, other display properties, including Data Color, size of data etc. are no Identical, the condiment of display, fresh Data Color are identical, in terms of other display properties, including the not phase such as row height, size of data Together.
Daily necessities can be set, beverage, condiment, fresh respectively correspond daily necessities cell, beverage unit lattice, condiment unit Lattice, fresh cell;One manager (manager) is set in view controller, setting two basic agencies in manager Realization device is acted on behalf of in realization device and four successions, and acting on behalf of realization device substantially for the Ith may be implemented the row Gao Xiangtong of cell General-purpose attribute, the IIth act on behalf of realization device substantially and the identical general-purpose attribute of Data Color of cell may be implemented;Four It is respectively that realization device is acted on behalf of in daily necessities succession, realization device is acted on behalf of in beverage succession, condiment inherits generation that realization device is acted on behalf of in succession Realization device is acted on behalf of in reason realization device, fresh succession;Wherein, realization device is acted on behalf of in daily necessities succession, beverage is inherited agency and realized Device inherits the Ith general-purpose attribute for acting on behalf of realization device substantially, and daily necessities succession act on behalf of realization device and beverage after It holds and acts on behalf of the particular attribute of realization device and respectively include the display properties such as respective Data Color, size of data;Condiment inherits generation Reason realization device, fresh succession act on behalf of realization device and inherit the IIth and act on behalf of the general-purpose attribute of realization device substantially, and adjust Material, which is inherited, acts on behalf of realization device and fresh inherit acts on behalf of the particular attribute of realization device and respectively include that respective row is high, size of data Equal display properties.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered Depending on protection scope of the present invention.

Claims (10)

1. a kind of iOS client is to the managing device for having multiple agencies characterized by comprising
Manager is arranged in view controller, for receiving the data content and corresponding with data content of server transmission Data display type and according to the data content and data display type corresponding with data content be corresponding views In corresponding unit lattice it is specified specifically act on behalf of realization device substantially and/or inherit act on behalf of realization device, in turn, in the view In corresponding unit lattice in the data content shown with corresponding data display type;
Substantially it acts on behalf of realization device, is arranged in manager, for when manager refreshes view, according to the specified of manager, Realize the general-purpose attribute of the corresponding unit lattice in corresponding views;The general-purpose attribute includes the identical multiple lists of data display type The shared data display properties of first lattice;
Realization device is acted on behalf of in succession, is arranged in manager, for inheriting the general-purpose attribute for acting on behalf of realization device substantially, and in pipe When managing device refreshing view, according to the specified of manager, general-purpose attribute and the spy of the corresponding unit lattice in corresponding views are realized respectively There is attribute;The particular attribute includes other data display properties in addition to general-purpose attribute of corresponding unit lattice.
2. iOS client according to claim 1 is to the managing device for having multiple agencies, which is characterized in that the view Controller for managing the load of data, the display and unloading of view, and is responsible for communication and association with other view controllers It adjusts.
3. iOS client according to claim 1 is to the managing device for having multiple agencies, which is characterized in that the management Device and the view correspond.
4. iOS client according to claim 3 is to the managing device for having multiple agencies, which is characterized in that each management The quantity at least two for acting on behalf of realization device substantially of device.
5. iOS client according to claim 3 is to the managing device for having multiple agencies, which is characterized in that each management The quantity at least two of realization device is acted on behalf of in the succession of device, and each succession acts on behalf of realization device and at least inherits a basic generation Manage the general-purpose attribute of realization device.
6. iOS client according to claim 1 is to the managing device for having multiple agencies, which is characterized in that the realization The general-purpose attribute of corresponding unit lattice in corresponding views, the row to realize corresponding unit lattice are high all identical.
7. iOS client according to claim 6 is to the managing device for having multiple agencies, which is characterized in that realize corresponding The particular attribute of corresponding unit lattice in view, to realize the Data Color shown in corresponding unit lattice.
8. iOS client according to claim 6 is to the managing device for having multiple agencies, which is characterized in that realize corresponding The particular attribute of corresponding unit lattice in view, to realize the data font type shown in corresponding unit lattice.
9. iOS client according to claim 1 is to the managing device for having multiple agencies, which is characterized in that the realization The particular attribute of corresponding unit lattice in corresponding views, to realize the size of data shown in corresponding unit lattice.
10. iOS client according to claim 1 is to the managing device for having multiple agencies, which is characterized in that the realization The general-purpose attribute of corresponding unit lattice in corresponding views, to realize the size of data shown in corresponding unit lattice.
CN201910034207.3A 2018-05-18 2019-01-15 A kind of iOS client is to the managing device for having multiple agencies Pending CN109918035A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201820742768X 2018-05-18
CN201820742768 2018-05-18

Publications (1)

Publication Number Publication Date
CN109918035A true CN109918035A (en) 2019-06-21

Family

ID=66996783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910034207.3A Pending CN109918035A (en) 2018-05-18 2019-01-15 A kind of iOS client is to the managing device for having multiple agencies

Country Status (1)

Country Link
CN (1) CN109918035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427180A (en) * 2019-07-05 2019-11-08 拉货宝网络科技有限责任公司 A kind of fast construction method of physical distribution trading platform interactive interface

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6002867A (en) * 1996-10-24 1999-12-14 Inprise Corporation Development system with methods providing visual form inheritance
US20040046789A1 (en) * 2002-08-23 2004-03-11 Angelo Inanoria Extensible user interface (XUI) framework and development environment
US20150172120A1 (en) * 2013-12-12 2015-06-18 Commvault Systems, Inc. Managing non-conforming entities in information management systems, including enforcing conformance with a model entity
CN106815015A (en) * 2016-12-21 2017-06-09 武汉斗鱼网络科技有限公司 View method for organizing and system in a kind of IOS
CN107818122A (en) * 2016-09-14 2018-03-20 深圳市优朋普乐传媒发展有限公司 A kind of Agent components, search management method and search management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6002867A (en) * 1996-10-24 1999-12-14 Inprise Corporation Development system with methods providing visual form inheritance
US20040046789A1 (en) * 2002-08-23 2004-03-11 Angelo Inanoria Extensible user interface (XUI) framework and development environment
US20150172120A1 (en) * 2013-12-12 2015-06-18 Commvault Systems, Inc. Managing non-conforming entities in information management systems, including enforcing conformance with a model entity
CN107818122A (en) * 2016-09-14 2018-03-20 深圳市优朋普乐传媒发展有限公司 A kind of Agent components, search management method and search management system
CN106815015A (en) * 2016-12-21 2017-06-09 武汉斗鱼网络科技有限公司 View method for organizing and system in a kind of IOS

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
浅浅青丘: "iOS UIViewController基类的实现", pages 1, Retrieved from the Internet <URL:https://blog.csdn.net/aaaaazq/article/details/79882286> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110427180A (en) * 2019-07-05 2019-11-08 拉货宝网络科技有限责任公司 A kind of fast construction method of physical distribution trading platform interactive interface

Similar Documents

Publication Publication Date Title
CN109725901A (en) Development approach, device, equipment and the computer storage medium of front-end code
CN108280119A (en) Page generation method, device and user terminal
US9240061B2 (en) Pattern representation images for business intelligence dashboard objects
Bang et al. Fidelity deviation in quantum teleportation
US20160224534A1 (en) Grid-based user interface system
Buchert et al. Cosmological backreaction and its dependence on spacetime foliation
Richer et al. Comparing the white dwarf cooling sequences in 47 Tuc and NGC 6397
Bedingham et al. The thermodynamic cost of quantum operations
CN107402766A (en) Page layout management method and device
CN107729452A (en) Webpage loading method, device, electronic equipment and computer-readable recording medium
CN107038194A (en) A kind of method for page jump and device
CN111652376A (en) Quantum bit signal reading method and device
CN107341266A (en) The method and apparatus that a kind of display information obtains
CN107450830A (en) The method and apparatus that a kind of single screen multiwindow supports Random seismic field simultaneously
CN109918035A (en) A kind of iOS client is to the managing device for having multiple agencies
US11126684B2 (en) Providing dynamic overview panel user experience
CN105653133A (en) Extension method and device of application programs
Pearn et al. The burn-in test scheduling problem with batch dependent processing time and sequence dependent setup time
Gu et al. The mass dependence of structure, star formation rate, and mass assembly mode at 0.5< z< 2.5
Lapi et al. A Stochastic Theory of the Hierarchical Clustering. I. Halo Mass Function
Zamparo Statistical fluctuations under resetting: rigorous results
Askari et al. The effect of hubs and shortcuts on fixation time in evolutionary graphs
Awasthi et al. Variation of quantum speed limit under Markovian and non-Markovian noisy environment
CN107181625A (en) Data, services provide method and device
Platini et al. Quantum repeated interactions and the chaos game

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination