CN116185402A - Method and device for creating pop-up view, computer equipment and storage medium - Google Patents

Method and device for creating pop-up view, computer equipment and storage medium Download PDF

Info

Publication number
CN116185402A
CN116185402A CN202211734414.8A CN202211734414A CN116185402A CN 116185402 A CN116185402 A CN 116185402A CN 202211734414 A CN202211734414 A CN 202211734414A CN 116185402 A CN116185402 A CN 116185402A
Authority
CN
China
Prior art keywords
view
controller
creating
child
pop
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
CN202211734414.8A
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.)
Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Original Assignee
Chengdu Seres 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 Chengdu Seres Technology Co Ltd filed Critical Chengdu Seres Technology Co Ltd
Priority to CN202211734414.8A priority Critical patent/CN116185402A/en
Publication of CN116185402A publication Critical patent/CN116185402A/en
Pending legal-status Critical Current

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/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a method, a device, computer equipment and a storage medium for creating a pop-up view, wherein the method comprises the steps of creating a parent view controller, comprising a root view, wherein the root view has a first parameter, and the first parameter is determined according to a background parameter of a target pop-up view; creating a first child view under a parent view controller, wherein the first child view is positioned at the upper layer of the root view; creating a child view controller, wherein the child view controller inherits from the parent view controller and obtains a second child view under the child view controller; the sub-view controller also comprises a control, and the sub-view controller is configured to provide a processing method for the control, so that the problem of complicated popup view level in the prior art can be improved by adopting the method.

Description

Method and device for creating pop-up view, computer equipment and storage medium
Technical Field
The present invention relates to the field of user interface development technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for creating a pop-up view.
Background
In user interface (UserInterface, UI) designs, it is often necessary to pop out a new View on the basis of the previous interface, with the new View having a semi-transparent background so that the previous interface is still visible under the transparent layer, current implementations are typically a sub-class of the View (View) of the newly created user interface, such as View1, with sub-views (e.g., date selection list) added thereto, with the semi-transparent sub-views added and placed at the lowest layer of View1, and then View1 is added to the current window or View.
In the implementation manner, the problem of complex hierarchy exists, view1 is the only container, and both data logic and layer display are located in view1, so that code reading and later maintenance are not facilitated.
Disclosure of Invention
Based on the above, a method, a device, a computer device and a storage medium for creating a pop-up view are provided, so that the problem of complicated pop-up view hierarchy in the prior art is solved.
In one aspect, a method for creating a pop-up view is provided, the method comprising:
creating a parent view controller, wherein the parent view controller comprises a root view, and the root view has a first parameter which is determined according to a background parameter of a target popup view;
creating at least one first child view under a parent view controller, wherein the first child view is positioned at the upper layer of the root view, and has a second parameter, and the second parameter is determined according to the content frame parameter of the target popup view;
creating a child view controller, wherein the child view controller inherits from the parent view controller and obtains a second child view under the child view controller; the sub-view controller further comprises a control, and the sub-view controller is configured to provide a processing method for the control, wherein the control is determined according to a target function of the target popup view and is located in the second sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
In one embodiment, after the creating the first child view under the parent view controller, the method further includes:
setting the father view controller to pop up in an overlaying mode, and canceling animation parameters; and the first sub-view pops up according to the animation parameters of the target pop-up view.
In one embodiment, after the creating the first child view under the parent view controller, the method further includes:
creating a response view and adding a response event to the response view, the response view comprising one or more clear-color transparent views, the response view being disposed around the first child view or at a top level of the parent view controller view hierarchy;
the response event includes: responsive to a gesture located on the responsive view, closing the own view controller.
In one embodiment, when the number of response views is only one, adding the response view to the top layer of the parent view controller view hierarchy sets a response event for the response view: and judging whether the gesture falls in the area of the first sub-view, if not, closing the gesture.
In one embodiment, the parent view controller is configured to: for providing a close self function interface for the child view controller to inherit and then call.
In one embodiment, the parent view controller is configured to: for providing an animation effect function interface for overwriting when creating said child view controller.
In still another aspect, there is provided a creation apparatus of a pop-up view, including:
a parent view controller module for creating a parent view controller, the parent view controller comprising a root view, the root view having a first parameter, the first parameter determined from a background parameter of a target pop-up view; the method is also used for creating a first child view under the parent view controller, the first child view is positioned at the upper layer of the root view, wherein the first child view has a second parameter, and the second parameter is determined according to the content frame parameter of the target popup view;
a child view controller module for creating a child view controller inherited from the parent view controller to obtain a second child view under the child view controller; the sub-view controller further comprises a control, and the sub-view controller is configured to provide a processing method for the control, wherein the control is determined according to a target function of the target popup view and is located in the second sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
In yet another aspect, a computer apparatus is provided comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method when the computer program is executed.
There is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method.
Compared with the method, the device, the computer equipment and the storage medium for creating the pop-up view, which are used for packaging the data logic and the layers in the unique view subclass, the method, the device, the computer equipment and the storage medium realize independent management of view levels by creating the independent view controllers, are mutually separated from the original page, and simplify and clearly apply the view levels; by encapsulating the data and logic in the View controller, code separation of an MVC (model-View-controller) model is achieved, improving maintainability.
Drawings
FIG. 1 is a flow diagram of a method of creating an pop-up view in one embodiment;
FIG. 2 is a schematic diagram of a parent view controller and child view controllers in one embodiment;
FIG. 3 is a block diagram of a structure of a device for creating an pop-up view in one embodiment;
fig. 4 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The UI design is the overall design of man-machine interaction, operation logic and attractive interface of software, is a necessary development step of application software, and can be used for acquiring and feeding back information, inputting and outputting information for an operating system such as an IOS system.
In IOS systems, navigation bars, toolbars, tab bars, tables, collections, images, maps, custom views, etc. may be contained in a pop-up view (popup), which is a temporary view that appears over other content on the screen when a control or region is clicked, and may be closed by clicking on another portion of the screen or a button on the popup, which should not typically occupy the entire screen so that the user can see important content on the previous window clearly.
Existing pop-up views are typically implemented by creating a sub-class of view uiniew, for example named view1, adding a sub-view (e.g., date selection list) to it, adding a semi-transparent sub-view to it and placing it at the bottom of view1, and then adding view1 to the current window.
However, because view1 is the only container, both the data logic and the layer presentation are encapsulated within view1, a large amount of code is not easily readable, and maintenance costs are high when changes to the solution occur.
In addition, the sub-View 1 of the newly created View must be added to the current window or the current View, and there is a parent-child relationship between the newly created View and the current window or the current View, which is complicated in hierarchy and easily causes confusion of references to the View, for example, if there is a View with tag (tag) of 123 on the original interface, if there is also a View with tag of 123 in the View1, the program will obtain a random result when reading the View with tag of 123 from the top View, which is not desirable.
The pop-up view creation method provided by the application can be used for UI development for the terminal with the IOS system, and the terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices.
In one embodiment, as shown in FIG. 1, the method includes the steps of:
step 101, creating a parent view controller, wherein the parent view controller comprises a root view, the root view is provided with a first parameter, the first parameter is determined according to a background parameter of a target popup view, and the parent view controller is a child of a view controller uiiviewcontroller provided by a system.
It can be understood that the target pop-up view is the view to be constructed of the service requirement.
Illustratively, the creation of the parent view controller includes creating a sub-class of uiniewcontroller, for example named as viewcontlerp, setting the root view of the viewcontlerp according to the background parameters of the view to be built, such as color, transparency, etc., for example, setting the background color of the root view to be semi-transparent, where the color may be specified by a specific business requirement.
At step 102, at least one first sub-view under the parent view controller is created, the first sub-view being located at an upper layer of the root view, wherein the first sub-view has a second parameter, and the second parameter is determined according to a content frame parameter of the target pop-up view.
The first child view is added to the parent view controller as an area for displaying business requirement content, the first child view can be an opaque view, the color of the first child view is generally white, the content frame parameter can be determined according to the specific requirement of the target popup view, and the content frame parameter can also comprise the position, the size and the like of the first child view, so that the position, the size and the like of the first child view are determined, for example, the first child view can be positioned at the upper position, the middle position, the lower position and the like of the root view.
The parent view controller may be directly applied to pop-up in response to an operation on a control on a previous interface, the related control and content of the service requirement may be configured in an opaque first child view in the parent view controller, and the parent view controller may be configured to call a system method dissms (implemented:, completion) to close itself, so that the parent view controller may complete a general view operation, including: the view content is opaque in color with various controls that are presented and interacted with by the user (including, but not limited to, buttons, input text boxes, form views, etc. all iOS can implement controls). The user can select the corresponding data through interaction, and then the view turns off itself to re-present the last interface.
The parent view controller can realize the default function of the pop-up view, and in order to realize the function of service requirements, the pop-up view creating method provided by the application further comprises the following steps:
step 103, creating a child view controller, as shown in fig. 2, wherein the child view controller inherits from the parent view controller and obtains a second child view under the child view controller; the sub-view controller further comprises a control, the sub-view controller is configured to provide a processing method for the control, the control is determined according to a target function of the target popup view and is located in the second sub-view area, on the other hand, a third sub-view can be added according to service requirements, and the space can be located in the third sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
The creation of child view controls is also achieved by creating a child of uiviiewcontroller, which inherits the properties of the parent view controller, which acts as a container for managing data and business logic, encapsulating externally provided processing methods such as proxy or callback blocks.
In the sub-view controller, one or more sub-classes of uiniew are created, various controls for showing and interacting with a user are drawn, the user can select/input corresponding data through interaction, and the data is transmitted to the sub-view controller through the proxy or callback block language characteristic of the iOS, so that the sub-view controller processes business logic.
In the method for creating the pop-up view, the parent view controller is used as a design basis for providing default implementation, the child view controller inherits from the parent view controller, and logic of service requirements is packaged on the basis of the child view controller, so that separation of specific service scenes and general functions is realized; on the other hand, the data and the logic can be placed in a ViewController, and the user-defined view content is placed in the view, so that maintainability is greatly improved; in yet another aspect, the layers of the pop-up view are implemented by means of a separate view controller, separate from the previous interface, with a simplified, clear view hierarchy.
In one embodiment, a pop-up animation of the business requirements may be added to the pop-up view, illustratively, after the creation of the first child view under the parent view controller, further comprising:
the parent view controller is set to pop up in a present mode, and an attribute modalpresentationStyle of the parent view controller is set to be overshellScreen so as to realize full screen coverage, and a transition Animation (in a popup function present (performed) method, a parameter affiated is set to be false, a transition Animation of the parent view controller is removed) of the parent view controller is set to be removed so as to meet the requirement of instantly popping up of the viewcontlerP, and meanwhile, an opaque Animation parameter of a first child view with a target popup view is set to pop up or disappear in a business requirement Animation mode, animation effects include but are not limited to gradual in/gradual out, upward/downward/leftward/rightward fly-in, rotational fly-in and the like, and specific implementation modes of the Animation include, but are not limited to, a uiviiw method Animation using iOS, an Animation of ImageView, a projector Animation, a Core Animation, a web page playing Animation, a business form, a Lotttrack and the like.
The closing of the parent view controller may be accomplished by calling the system method dissms (completed), and no vanishing animation of the viewcontrol lerp is set, i.e. the parameter animated is set to false.
In one embodiment, a default shutdown function may also be added to the parent view controller by creating a responsive view.
Illustratively, creating one or more clear colored transparent views as a responsive view and adding thereto a user interaction gesture response event, the gesture including, but not limited to, clicking, sliding, rotating, etc., the responsive view closing the parent view controller in response to the gesture located on the responsive view; and child view controllers inherited from the parent view controller may turn themselves off when the child view controller's responsive view is gestured upon pop-up.
In one embodiment, when the number of response views is 1, it is added to the uppermost layer of the view hierarchy of the viewControllerP, the hitTest of the response view is rewritten (wittevent:), judged in the function, and when the user's click falls in the opaque sub-view, it is returned to nil, otherwise it is returned to itself.
In a specific implementation process of one embodiment, multiple response views can be created, the multiple response views are added into a root view of a view control, a brother relationship is formed between the multiple response views and a first child view, the response views surround the first child view, and the same user interaction gesture response event is added to all the response views, so that the purpose of enabling the whole father view to disappear when a user operates any one click response view can be achieved.
The parent view controller is configured to: and the function closing interface is used for providing a closed function closing interface for the child view controller to inherit and then call.
The parent view controller is configured to: the animation effect function interface is used for providing an animation effect function interface for being rewritten when the child view controller is created, so that the aim of realizing the self pop-up animation/animation vanishing effect is fulfilled.
It should be understood that, although the steps in the flowcharts of fig. 1-2 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or phases are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or phases of other steps or other steps.
In one embodiment, as shown in fig. 3, there is provided a creation apparatus of a pop-up view, including: a parent view controller module and a child view controller module, wherein:
a parent view controller module for creating a parent view controller, the parent view controller comprising a root view, the root view having a first parameter, the first parameter determined from a background parameter of a target pop-up view; the method is also used for creating a first child view under the parent view controller, the first child view is positioned at the upper layer of the root view, wherein the first child view has a second parameter, and the second parameter is determined according to the content frame parameter of the target popup view;
a child view controller module for creating a child view controller inherited from the parent view controller to obtain a second child view under the child view controller; the sub-view controller further comprises a control, the sub-view controller is configured to provide a processing method for the control, the control is determined according to a target function of the target popup view and is located in the second sub-view area, in addition, a third sub-view can be automatically created according to the target popup view, and the control can be located in the third sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
Compared with the method that the data logic and the layers are packaged in the unique view subclasses, the device for creating the pop-up view realizes independent management of view levels by creating the independent view controllers, is mutually separated from the original page, and simplifies and clearly applies the view levels; by encapsulating the data and logic in the View controller, code separation of an MVC (model-View-controller) model is achieved, improving maintainability.
In one embodiment, the parent view controller is set to pop up in an override manner and cancel animation parameters; and the first sub-view pops up according to the animation parameters of the target pop-up view, and after the sub-view controller inherits, the sub-view controller can realize the pop-up effect of the service requirement.
In one embodiment, the parent view controller module creates a response view under the parent view controller and adds a response event to the response view according to the service requirement, for example, adds one or more transparent views with clear colors as the response view, and adds a user interaction gesture to the transparent views, wherein the response view is used for closing the parent view controller in response to the gesture operation, so that the parent view controller disappears; after inheriting the child view controller, the child view controller is enabled to turn itself off after popping up in response to a gesture located in the responsive view.
When only one response view is added, e.g. clicking on the response view, it is then added to the uppermost layer of the view hierarchy of the viewControllerP, the hitTest of the response view is rewritten (wittevent:), it is judged in the function that nil is returned when the user's operation falls in the opaque sub-view, otherwise it returns itself.
When multiple click response views are added, the multiple response views are added to the root view of the view control player P, a brother relationship is formed between the multiple response views and the opaque sub-views, the multiple response views are arranged on the layout and surround the opaque sub-views, and then the same user interaction gesture response event is added to all the click response views.
In one embodiment, the viewcontrol lerP provides an interface for closing a function closing eFunit for the sub-view controller to call, and the sub-view controller can rewrite the function to achieve the aim of realizing the effect of closing the animation; on the other hand, the viewcontrollerP provides interfaces that the animation effect functions are used for being rewritten by the child view controller so as to achieve the aim of realizing the self pop-up animation/animation vanishing effect.
For specific limitations regarding the creation means of the pop-up view, reference may be made to the above limitation of the creation method of the pop-up view, and no further description is given here. The respective modules in the above-described creation means of the pop-up view may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of creating a pop-up view. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the structures shown in FIG. 4 are block diagrams only and do not constitute a limitation of the computer device on which the present aspects apply, and that a particular computer device may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
step A, creating a parent view controller, wherein the parent view controller comprises a root view, the root view has a first parameter, and the first parameter is determined according to a background parameter of a target popup view;
step B, a first child view under a parent view controller is created, wherein the first child view is positioned at the upper layer of the root view, the first child view is provided with a second parameter, and the second parameter is determined according to the content frame parameter of the target popup view;
step C, creating a child view controller, wherein the child view controller inherits from the parent view controller and obtains a second child view under the child view controller; the sub-view controller further comprises a control, and the sub-view controller is configured to provide a processing method for the control, wherein the control is determined according to a target function of the target popup view and is located in the second sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
In one embodiment, the processor when executing the computer program further performs the steps of:
setting the father view controller to pop up in an overlaying mode, and canceling animation parameters; and the first sub-view pops up according to the animation parameters of the target pop-up view.
In one embodiment, the processor when executing the computer program further performs the steps of:
creating a response view and adding a response event to the response view, the response view comprising one or more clear-color transparent views, the response view being disposed around the first child view or at a top level of the parent view controller view hierarchy;
the response event includes: responsive to a gesture located on the responsive view, closing the own view controller.
In one embodiment, the processor when executing the computer program further performs the steps of:
when the number of the response views is only one, adding the response views to the top layer of the view hierarchy of the parent view controller, and setting response events for the response views: and judging whether the gesture falls in the area of the first sub-view, if not, closing the gesture.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
step A, creating a parent view controller, wherein the parent view controller comprises a root view, the root view is provided with a first parameter, the first parameter is determined according to a background parameter of a target pop-up view, and the parent view controller is a subclass of a previous page view controller;
step B, a first child view under a parent view controller is created, wherein the first child view is positioned at the upper layer of the root view, the first child view is provided with a second parameter, and the second parameter is determined according to the content frame parameter of the target popup view;
step C, creating a child view controller, wherein the child view controller inherits from the parent view controller and obtains a second child view under the child view controller; the sub-view controller further comprises a control, and the sub-view controller is configured to provide a processing method for the control, wherein the control is determined according to a target function of the target popup view and is located in the second sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
In one embodiment, the computer program when executed by the processor further performs the steps of:
setting the father view controller to pop up in an overlaying mode, and canceling animation parameters; and the first sub-view pops up according to the animation parameters of the target pop-up view.
In one embodiment, the computer program when executed by the processor further performs the steps of:
creating a response view and adding a response event to the response view, the response view comprising one or more clear-color transparent views, the response view being disposed around the first child view or at a top level of the parent view controller view hierarchy;
the response event includes: responsive to a gesture located on the responsive view, closing the own view controller.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of creating a pop-up view, comprising:
creating a parent view controller, wherein the parent view controller comprises a root view, and the root view has a first parameter which is determined according to a background parameter of a target popup view;
creating at least one first child view under a parent view controller, wherein the first child view is positioned at the upper layer of the root view, and has a second parameter, and the second parameter is determined according to the content frame parameter of the target popup view;
creating a child view controller, wherein the child view controller inherits from the parent view controller and obtains a second child view under the child view controller; the sub-view controller further comprises a control, and the sub-view controller is configured to provide a processing method for the control, wherein the control is determined according to a target function of the target popup view and is located in the second sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
2. The method for creating a pop-up view according to claim 1, further comprising, after the creating of the first child view under the parent view controller:
setting the father view controller to pop up in an overlaying mode, and canceling animation parameters; and the first sub-view pops up according to the animation parameters of the target pop-up view.
3. The method for creating a pop-up view according to any one of claims 1-2, further comprising, after the creating of the first child view under the parent view controller:
creating a response view and adding a response event to the response view, the response view comprising one or more clear-color transparent views, the response view being disposed around the first child view or at a top level of the parent view controller view hierarchy;
the response event includes: responsive to a gesture located on the responsive view, closing the own view controller.
4. A method of creating a pop-up view according to claim 3, wherein when the number of response views is only one, adding the response view to the top layer of the parent view controller view hierarchy sets a response event for the response view: and judging whether the gesture falls in the area of the first sub-view, if not, closing the gesture.
5. The method of creating a pop-up view according to claim 1, wherein the parent view controller is configured to: for providing a close self function interface for the child view controller to inherit and then call.
6. The method of creating a pop-up view according to claim 1, wherein the parent view controller is configured to: for providing an animation effect function interface for overwriting when creating said child view controller.
7. The method of creating a pop-up view according to claim 1, wherein creating a sub-view controller, further comprises thereafter:
and creating a third sub-view according to the target popup view.
8. A device for creating a pop-up view, comprising:
a parent view controller module for creating a parent view controller, the parent view controller comprising a root view, the root view having a first parameter, the first parameter determined from a background parameter of a target pop-up view; and the method is also used for creating at least one first child view under the parent view controller, wherein the first child view is positioned at the upper layer of the root view, and has a second parameter which is determined according to the content frame parameter of the target popup view;
a child view controller module for creating a child view controller inherited from the parent view controller to obtain a second child view under the child view controller; the sub-view controller further comprises a control, and the sub-view controller is configured to provide a processing method for the control, wherein the control is determined according to a target function of the target popup view and is located in the second sub-view area; the sub-view controller is configured to display as a pop-up view upon acquisition of a pop-up operation.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 8.
CN202211734414.8A 2022-12-30 2022-12-30 Method and device for creating pop-up view, computer equipment and storage medium Pending CN116185402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211734414.8A CN116185402A (en) 2022-12-30 2022-12-30 Method and device for creating pop-up view, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211734414.8A CN116185402A (en) 2022-12-30 2022-12-30 Method and device for creating pop-up view, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116185402A true CN116185402A (en) 2023-05-30

Family

ID=86445431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211734414.8A Pending CN116185402A (en) 2022-12-30 2022-12-30 Method and device for creating pop-up view, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116185402A (en)

Similar Documents

Publication Publication Date Title
US20200372206A1 (en) System and method providing responsive editing and viewing, integrating hierarchical fluid components and dynamic layout
US20210303108A1 (en) System and method for on-screen graphical user interface encapsulation and reproduction
US11769002B2 (en) Extended data grid components with multi-level navigation
CN108376094B (en) Notification message display method and device, computer equipment and storage medium
US7512892B2 (en) Method and system for displaying and interacting with paginated content
US8717383B2 (en) Automatic management of diagram elements
KR102479662B1 (en) Page conversion method, device, storage medium and computer equipment
US20070245250A1 (en) Desktop window manager using an advanced user interface construction framework
CN112579050A (en) Task-based configuration rendering context
JPH10500512A (en) Method and system for customizing form and operation of graphical user interface
CN109782977B (en) View processing method, electronic device and storage medium
CN107168715B (en) Intelligent terminal menu theme GUI engine implementation method
TW201826109A (en) Method and apparatus for page presentation
CN101374213A (en) Implementing method for self-defining television human-machine interface
EP3161598A1 (en) Light dismiss manager
TW201009685A (en) Program object properties defined by object space
US7024633B1 (en) Methods and apparatus for creating and transforming graphical constructs
US20110225528A1 (en) Creating and Maintaining a Singular Uninterrupted Focus While Transitioning Through a Graduated User Interface
Grolaux et al. FlexClock, a Plastic Clock Written in Oz with the QTk toolkit.
CN110764762B (en) Page forming method and device, computer readable storage medium and terminal
CN116185402A (en) Method and device for creating pop-up view, computer equipment and storage medium
CN104915198B (en) A kind of flexibly SCADA host computer man-machine interfaces of definition and layout and content
CN112800365A (en) Expression package processing method and device and intelligent device
US20110320970A1 (en) Method And System For Controlling A User Interface Of A Software Application
US11366571B2 (en) Visualization components including sliding bars

Legal Events

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

Effective date of registration: 20240113

Address after: No. 13 Xingxiang Road, Zengjia Town, High tech Zone, Jiulongpo District, Chongqing, 400039

Applicant after: Chongqing Selis Phoenix Intelligent Innovation Technology Co.,Ltd.

Address before: 610095 No. 2901, floor 29, unit 1, building 1, No. 151, Tianfu Second Street, high tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan Province

Applicant before: Chengdu Thalys Technology Co.,Ltd.