CN111090429A - Panel screening development method based on Swift - Google Patents
Panel screening development method based on Swift Download PDFInfo
- Publication number
- CN111090429A CN111090429A CN201911319769.9A CN201911319769A CN111090429A CN 111090429 A CN111090429 A CN 111090429A CN 201911319769 A CN201911319769 A CN 201911319769A CN 111090429 A CN111090429 A CN 111090429A
- Authority
- CN
- China
- Prior art keywords
- screening
- view
- controller
- controllers
- conditions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
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)
- Feedback Control In General (AREA)
Abstract
The invention belongs to the technical field of screening panel development, and particularly relates to a screening panel development method based on Swift, which comprises the following steps of S1: newly building a controller as a screening controller, wherein the screening controller is used for controlling multidimensional screening View and switching button View of the screening View; s2: creating a button container View for placing a dimension switching button in a screening controller; s3: creating a container View for placing a multi-dimensional screening View; s4: creating a mask layer under the screening panel, adding a click event function, and placing the mask into a container View; s5: newly building a screening View in a screening controller; s6: all the screening conditions are added into a model object, wherein the model is a single case, the screening conditions are modified as long as the global condition is modified at one position, the value transmission of the screening conditions is omitted, the screening conditions are convenient to control, the screening conditions are returned to a dedicated service interface of the model through an interface, and the interface can be used for screening some of the models.
Description
Technical Field
The invention belongs to the technical field of screening panel development, and particularly relates to a screening panel development method based on Swift.
Background
Along with the continuous improvement of scientific technology, people have more and more requirements on mobile phone apps, the requirement on the aesthetic design of apps is higher and higher, the practicability and the operation convenience of apps are also higher, along with the continuous increase of personal data in apps, the screening function is undoubtedly the function which is most convenient for users to use, a screening function is developed at present, screening views can be put into a service controller, the construction of the control views of screening interface screening buttons is that the views are put into a controller, time-consuming and labor-consuming maintenance is carried out when the views need to be changed at the later maintenance stage, and the screening views are put into a controller, so that the size of the controller can be influenced, the number of code lines in the controller is increased, and the whole controller is quite bloated; if the dimensions of the screening conditions of different levels are large, screening views of different dimensions are put in to control the screening conditions, so that the service controller of the user becomes complicated, the coupling degree is high, and the later code maintenance is not facilitated, so that the development scheme has defects.
Disclosure of Invention
In order to solve the problems that the service controllers formed by screening views with different dimensions simultaneously placed in the service controllers are complex, the coupling degree is high and the like, the method for developing the screening panel based on the Swift is invented, so that the service controllers can realize the whole screening function only by a few simple lines of codes, the service controllers are liberated, and the service controllers are more clear logically.
In order to achieve the technical purpose, the technical scheme adopted by the invention is as follows:
the panel development method based on Swift screening comprises the following steps,
s1: newly building a controller as a screening controller, wherein the screening controller is used for controlling multidimensional screening View and switching button View of the screening View;
s2: creating a button container View for placing a dimension switching button in a screening controller;
s3: creating a container View for placing a multi-dimensional screening View;
s4: creating a mask layer under the screening panel, adding a click event function, and placing the mask into the contetainerview;
s5: newly building a screening View in a screening controller, building different screening dimension controllers for different screening dimensions, adding different screening dimension controllers add Child into the screening controller, dynamically building and adding the screening dimension controllers, and deleting the screening dimension controllers;
s6: all the screening conditions are added into a model object, wherein the model is a single case, the screening conditions are modified as long as the global condition is modified at one position, the value transmission of the screening conditions is omitted, the screening conditions are convenient to control, the screening conditions are returned to a dedicated service interface of the model through an interface, and the interface can be used for screening some of the models.
In a preferred embodiment of the present invention, in step S2, a switch button is used to switch the next screening View controller, and the switch button directly removes the screening View controller, and always keeps only one screening View controller in the screening control.
As a preferred embodiment of the present invention, in step S3, a container View is used to place screening controllers of various dimensions, and the controllers of various screening dimensions are personal proprietary service UIs, and the screening dimensions UIs are placed in respective controllers for maintenance.
The invention has the beneficial effects that:
the invention can well solve the control of the mobile terminal screening panel, liberate the service controller, reduce the code amount and improve the code utilization rate.
Detailed Description
In order that those skilled in the art can better understand the present invention, the following embodiments are provided to further illustrate the present invention.
The panel development method based on Swift screening comprises the following steps,
s1: newly building a controller as a screening controller, wherein the screening controller is used for controlling multidimensional screening View and switching button View of the screening View;
s2: creating a button container View for placing a dimension switching button in a screening controller, wherein the switching button is used for switching a screening View controller below, the switching of the switching button is to directly remove the screening View controller, and only one screening View controller is always kept in screening control;
s3: creating a container View for placing multi-dimensional screening views, and placing screening controllers with various dimensions by using the container View, wherein the controllers with various screening dimensions are personal exclusive service UIs, and the UI with various screening dimensions are placed in respective controllers for maintenance;
s4: creating a mask layer under the screening panel, adding a click event function, and placing the mask into the contetainerview;
s5: newly building a screening View in a screening controller, building different screening dimension controllers for different screening dimensions, adding different screening dimension controllers add Child into the screening controller, dynamically building and adding the screening dimension controllers, and deleting the screening dimension controllers;
s6: all the screening conditions are added into a model object, wherein the model is a single case, the screening conditions are modified as long as the global condition is modified at one position, the value transmission of the screening conditions is omitted, the screening conditions are convenient to control, the screening conditions are returned to a dedicated service interface of the model through an interface, and the interface can be used for screening some of the models.
In the invention, in the step S2, the advantage of always keeping only one screening View controller in screening control is that the memory can be saved;
in step S3, the UI of a certain screening dimension is adjusted, and only the controller of the screening dimension needs to be modified, and no problem exists for other service logic;
in step S5, dynamically creating and adding a screening dimension controller and deleting a screening dimension controller; the method can control that only one screening dimension controller is reserved in the only interface to be displayed, and the others are deleted; the pressure of the interface memory can be reduced;
in step S6, for the control of the type of screening condition, the screening controller is a unified entry, an integral screening controller, but each screening dimension is a separate independent component; if the attributes are used for transmission and control in the screening controller, the screening controller becomes more and more bloated, therefore, all screening conditions are added into a model object in order to uniformly manage the screening conditions of all dimensions, the model is a single example, and the advantages that the screening conditions are modified at one place, the transmission value of the screening conditions is omitted, the screening conditions are convenient to control, the screening conditions are returned to a service interface of the model through an interface, and the interface can be used for screening some models in the model.
The foregoing embodiments are merely illustrative of the principles of the present invention and its efficacy, and are not to be construed as limiting the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.
Claims (3)
1. A panel screening development method based on Swift is characterized in that: comprises the following steps of (a) carrying out,
s1: newly building a controller as a screening controller, wherein the screening controller is used for controlling multidimensional screening View and switching button View of the screening View;
s2: creating a button container View for placing a dimension switching button in a screening controller;
s3: creating a container View for placing a multi-dimensional screening View;
s4: creating a mask layer under the screening panel, adding a click event function, and placing the mask into the contetainerview;
s5: newly building a screening View in a screening controller, building different screening dimension controllers for different screening dimensions, adding different screening dimension controllers add Child into the screening controller, dynamically building and adding the screening dimension controllers, and deleting the screening dimension controllers;
s6: all the screening conditions are added into a model object, wherein the model is a single case, the screening conditions are modified as long as the global condition is modified at one position, the value transmission of the screening conditions is omitted, the screening conditions are convenient to control, the screening conditions are returned to a dedicated service interface of the model through an interface, and the interface can be used for screening some of the models.
2. The Swift-based screening panel development method as claimed in claim 1, wherein: in step S2, the switch button is used to switch the next screening View controller, and the switch button directly removes the screening View controller, and always keeps only one screening View controller in the screening control.
3. The Swift-based screening panel development method as claimed in claim 1, wherein: in the step S3, the container View is used to place screening controllers of various dimensions, the controllers of various screening dimensions are the personal exclusive service UIs, and the screening dimensions UIs are placed in their respective controllers for maintenance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319769.9A CN111090429B (en) | 2019-12-19 | 2019-12-19 | Screen panel development method based on Swift |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911319769.9A CN111090429B (en) | 2019-12-19 | 2019-12-19 | Screen panel development method based on Swift |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111090429A true CN111090429A (en) | 2020-05-01 |
CN111090429B CN111090429B (en) | 2023-05-12 |
Family
ID=70395941
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911319769.9A Active CN111090429B (en) | 2019-12-19 | 2019-12-19 | Screen panel development method based on Swift |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111090429B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102930053A (en) * | 2012-11-19 | 2013-02-13 | 西北大学 | Multi-dimensional intelligent resource filter method |
US20130304616A1 (en) * | 2009-01-28 | 2013-11-14 | Headwater Partners I Llc | Network service plan design |
CN110109654A (en) * | 2019-05-15 | 2019-08-09 | 中山大学 | A kind of interactive design method and system at multi-Dimensional Data Analytical System interface |
-
2019
- 2019-12-19 CN CN201911319769.9A patent/CN111090429B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130304616A1 (en) * | 2009-01-28 | 2013-11-14 | Headwater Partners I Llc | Network service plan design |
CN102930053A (en) * | 2012-11-19 | 2013-02-13 | 西北大学 | Multi-dimensional intelligent resource filter method |
CN110109654A (en) * | 2019-05-15 | 2019-08-09 | 中山大学 | A kind of interactive design method and system at multi-Dimensional Data Analytical System interface |
Non-Patent Citations (1)
Title |
---|
_HUANZI: "【Swift4.2】筛选面板", 《CSDN博客》 * |
Also Published As
Publication number | Publication date |
---|---|
CN111090429B (en) | 2023-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016155569A1 (en) | Suspended key based on touch screen, and apparatus | |
WO2020038169A1 (en) | Icon display method and apparatus, terminal and storage medium | |
CN104156171B (en) | Method and device for preventing touch key misoperations in landscape screen state of mobile terminal | |
CN106164856B (en) | Adaptive user interaction pane manager | |
US20160170575A1 (en) | Application activation method and apparatus and electronic equipment | |
CN105474129A (en) | Method for performing power saving mode in electronic device and electronic device thereof | |
CN110312985A (en) | Electronic equipment and method for showing its screen | |
CN106708181A (en) | Electronic device and method for configuring display thereof | |
KR102411858B1 (en) | Display method, apparatus and device of user interface | |
CN103049280B (en) | A kind of method and mobile terminal for realizing key macro definition function | |
EP3396519A1 (en) | Terminal and display control method | |
CN107113352A (en) | The method and its electronic equipment of shared screen | |
US20150301578A1 (en) | Electronic device and content display method thereof | |
CN101984398A (en) | Method and device for generating soft keyboard and terminal device | |
CN103327164A (en) | Mobile terminal and anti-peaking method thereof | |
CN106066703A (en) | A kind of multi-functional mechanical keyboard and keyboard control system | |
CN103279349A (en) | Mobile phone or PDA multi-window browsing system based on moving middleware | |
CN104503668A (en) | Method, system and terminal for generating menu shortcuts | |
CN108206967A (en) | Television interfaces element choosing method, smart television and computer readable storage medium | |
CN107943359A (en) | A kind of method, terminal and the computer-readable medium of the control of application program | |
CN103472972A (en) | Text display format setting unit and text display format setting method for mobile terminals and mobile terminal | |
CN103902101A (en) | Gesture recognition method of intelligent terminal, intelligent terminal realizing same | |
CN110515524B (en) | Method, device, terminal and storage medium for inputting information | |
CN105653246A (en) | Method and device for implementing horizontal tabulation in Android system | |
CN107608744A (en) | A kind of application process management method and its device, mobile terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |