CN113254133A - iOS multi-scene convenient popup tool, device, computer equipment and storage medium - Google Patents

iOS multi-scene convenient popup tool, device, computer equipment and storage medium Download PDF

Info

Publication number
CN113254133A
CN113254133A CN202110569492.6A CN202110569492A CN113254133A CN 113254133 A CN113254133 A CN 113254133A CN 202110569492 A CN202110569492 A CN 202110569492A CN 113254133 A CN113254133 A CN 113254133A
Authority
CN
China
Prior art keywords
popup
user
window
view
management
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
CN202110569492.6A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110569492.6A priority Critical patent/CN113254133A/en
Publication of CN113254133A publication Critical patent/CN113254133A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an iOS multi-scene convenient popup tool, which comprises: creating a single profit management class, creating a popup window under the single profit management class, and configuring popup window parameters of user-defined popup windows through the single profit attributes of the single profit management class; creating a root controller under the popup management window, wherein the root controller is used as a container of a user-defined popup; creating a child view controller of a root controller under the root controller; acquiring a sub-view of the popup management window through the sub-view controller, wherein the sub-view is used for bearing the user-defined popup, and the size of the user-defined popup is adapted to the size of a screen of user equipment; and creating a popup display interface, wherein the user-defined popup is displayed outwards through the popup display interface. A popup window is created through a simple management class to independently manage a user-defined popup, so that the popup display problem in the prior art is solved.

Description

iOS multi-scene convenient popup tool, device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of information interaction, in particular to an iOS multi-scene convenient popup tool, an iOS multi-scene convenient popup device, computer equipment and a storage medium.
Background
In the existing iOS apple system, one of the existing pop-up window display modes of each application software is a view display pop-up window based on a controller currently displaying the pop-up window, and the pop-up window is inconvenient to display in a service scene without the controller; the other method is that a popup window is displayed based on a view in a root controller of a main window of current application software, the main window can be acquired through a global simple profit, and the current popup window can be displayed without a popup window controller in the mode, but conflicts with a system popup window of the main window and other popup windows are probably generated; and the two popup window display modes are troublesome in configuration process, troublesome in development process, easy to miss, difficult to maintain after certain stages of business accumulation, and whether the popup window level is influenced or not needs to be considered when the popup window is increased or decreased.
Disclosure of Invention
Accordingly, it is desirable to provide an iOS multi-scenario pop-up tool, an iOS multi-scenario pop-up device, a computer apparatus, and a storage medium for solving the problem of pop-up display under multiple scenarios.
An iOS multi-scene facilitated popup tool comprising: creating a single interest management class, and creating a popup management window under the single interest management class, wherein the popup management window is used for managing a user-defined popup, and the user-defined popup configures popup parameters through the single interest attribute of the single interest management class; creating a root controller under the popup management window, wherein the root controller is used as a container of a user-defined popup; creating a child view controller of a root controller under the root controller; acquiring a sub-view of the popup management window through the sub-view controller, wherein the sub-view is used for bearing the user-defined popup, and the size of the user-defined popup is adapted to the size of a screen of user equipment; and creating a popup display interface, wherein the user-defined popup is displayed outwards through the popup display interface.
The popup management interface is managed and maintained by a user, and the user refers to a developer of the application software.
The popup management window refers to a unique instance created by the single interest management class, and provides the instance to the whole application software, and the single interest management class provides a global access method. The window priority of the popup management window is lower than that of the main window.
Preferably, the pop-up window parameters comprise parameters of a pop-up window view and parameters of a pop-up animation; the user-defined popup configures parameters of the popup view and parameters of the popup outgoing animation through the simple attribute of the simple management class;
the method for configuring the popup view parameters by the user-defined popup through the simple attribute of the simple management class comprises the following steps: setting popup view parameters under the simple interest management class, wherein the popup view parameters comprise the color and transparency of a shade of a user-defined popup, whether an event is closed or not in a blank spot and other parameters; and the user-defined popup configures the popup view parameters through the simple attribute of the simple management class.
The user-defined popup configures parameters of popup outgoing animation through the simple attribute of the simple management class, and the configuration comprises the following steps: customizing the pop-up window departure animation under the simple management class; listing the pop-up out-of-scene animations in an enumeration manner; and the user-defined popup configures the parameters of the popup outgoing animation through the simple attribute of the simple management class.
The obtaining, by the sub-view controller, a sub-view of the popup management window, where the sub-view is used to carry the user-defined popup, and a size of the user-defined popup is adapted to a size of a screen of a user device, further includes: rewriting a child view update callback method under the root controller; updating a callback method based on the child view, wherein the child view obtains the size adaptive to the screen size of the user equipment; and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
An iOS multi-scene popup management apparatus, comprising:
the user-defined popup configuration module: the system comprises a single interest management class, a popup window and a popup window, wherein the single interest management class is used for creating a single interest management class, the popup window is used for managing a user-defined popup window, and the user-defined popup window configures popup window parameters through the single interest attribute of the single interest management class;
a root controller creation module: the root controller is used for creating a root controller under the popup management window and serves as a container of a user-defined popup;
the child view controller creation module: a child view controller for creating a root controller under the root controller;
a sub-view acquisition module: the child view controller is used for creating a child view of the popup management window, the child view is used for bearing the user-defined popup, and the size of the user-defined popup is adapted to the screen size of user equipment;
the pop-up window display module: the popup display interface is used for creating a popup display interface, and the user-defined popup is displayed outwards through the popup display interface.
Wherein, the user-defined popup configuration module comprises:
a simple management class creation unit: for creating a single interest management class;
a popup management window creation unit: the method comprises the steps of creating a popup management window in a single profit mode, wherein the popup management window is used for managing user-defined popup.
A popup window parameter configuration unit: and configuring popup parameters by the user-defined popup through the simple attribute of the simple management class.
Wherein, the sub-view acquisition module comprises:
a sub-view configuration unit: rewriting a child view update callback method under the root controller;
a sub-view size acquisition unit: updating a callback method based on the child view, wherein the child view obtains the size adaptive to the screen size of the user equipment;
a user-defined popup size acquisition unit: and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
A computer device comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the computer readable instructions being readable instructions generated by an engine of any of the above.
One or more readable storage media storing code related to the engine of any of the above.
Above-mentioned many scenes of iOS facilitate popup instrument, device, computer equipment and storage medium provide popup management instrument under the many scenes in the iOS system, manage user-defined popup through establishing a popup management window under the simple mode, the popup is user-defined popup, the user indicates APP application software research personnel, specifically, includes: creating a single interest management class, and creating a popup management window under the single interest management class, wherein the popup management window is used for managing a user-defined popup, and the user-defined popup configures popup parameters through the single interest attribute of the single interest management class; creating a root controller under the popup management window, wherein the root controller is used as a container of a user-defined popup; creating a master view of a root controller under the root controller; acquiring a sub-view of the popup management window through the sub-view controller, wherein the sub-view is used for bearing the user-defined popup, and the size of the user-defined popup is adapted to the size of a screen of user equipment; and creating a popup display interface, wherein the user-defined popup is displayed outwards through the popup display interface. By newly building a popup management window to manage the user-defined popup, the problem that the popup is displayed in a service scene without a controller in the prior art and the problem that other popup conflicts with the user-defined popup in a system popup and a keywindow (main window) in the service scene in which the popup is displayed based on the view (main view) of a root controller under the main window are solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram illustrating an application environment of an iOS multi-scenario facility pop-up tool in accordance with an embodiment of the present invention;
FIG. 2 is a flow diagram of an iOS multi-scenario facility pop-up tool in accordance with an embodiment of the present invention;
FIG. 3 is a flow diagram of an iOS multi-scenario facility pop-up tool in accordance with an embodiment of the present invention;
FIG. 4 is a flow diagram of an iOS multi-scenario facility pop-up tool in accordance with an embodiment of the present invention;
FIG. 5 is a flow diagram of an iOS multi-scenario facility pop-up tool in accordance with an embodiment of the present invention;
FIG. 6 is a flow diagram of an iOS multi-scenario facility pop-up tool in accordance with an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an iOS multi-scene popup management apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an iOS multi-scene popup management apparatus according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of an iOS multi-scene popup management apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The iOS multi-scenario facilitated popup tool provided by the present embodiment can be applied to the application environment as shown in fig. 1, in which a client communicates with a server. The client includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented by an independent server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, an iOS multi-scenario pop-up tool is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
user-defined popup configuration step S1: creating a single interest management class, and creating a popup management window under the single interest management class, wherein the popup management window is used for managing a user-defined popup, and the user-defined popup configures popup parameters through the single interest attribute of the single interest management class.
Understandably, the pop-up window is an interaction which is informed to a user when the user operates the pop-up window or the background of the system changes or needs the user to participate in selection decision, is a generally applicable man-machine interaction mode in an iOS system, and can be roughly divided into a system pop-up window and a user-defined pop-up window. In an embodiment of the present application, a single interest management class LKModal is created, a window (pop window) is created under the single interest management class, the window refers to a unique instance created by the single interest management class LKModal and provides the instance to the whole application software, and the single interest management class provides a global access method. The popup refers to a user-defined popup, and the user refers to a developer of the application software.
As shown in fig. 3, the step of configuring the user-defined popup includes creating a single interest management class, and creating a popup management window under the single interest management class, where the popup management window is used to manage a user-defined popup, and the user-defined popup configures popup parameters through a single interest attribute of the single interest management class, and the method includes:
the simple management class creation step S11: a single interest management class is created.
Understandably, a single interest management class is created, i.e. in the single interest mode, the active single interest has only one window instance, and all instantiations to the single interest management class LKModal get the same instance, thus preventing other objects from instantiating themselves and ensuring that all objects access an instance. The simple mode has certain flexibility, the class controls the instantiation process, and the class has corresponding flexibility on the change of the instantiation process, thereby providing controlled access to the unique instance. The application creates the tool class, namely the simple interest management class, and the popup management window independently manages the user-defined popup through the tool class.
User-defined popup configuration step S12: and under the single interest management class, creating a popup management window, wherein the popup management window is used for managing user-defined popup.
Understandably, a single interest management class LKModal is created, wherein the single interest management class LKModal has a window which is created and maintained by itself to show a user-defined popup specially, the user-defined popup can be obtained and shown in a global single interest each time, one-time creation and multiple use are guaranteed, and because only one window object exists in a system memory, system resources can be saved. The method comprises the steps of creating a popup management window, wherein the popup management window is managed and maintained by a user, the priority of the popup management window is lower than that of a common window, namely the popup management window is independently used for managing a user-defined popup, the window priority of the popup management window is set to be lower than the window priority of a keywindow or other windows, it is guaranteed that an application main view cannot be closed when the user-defined popup is displayed, an application interface can be displayed behind the popup window when a popup frame exists, and the user-defined window is finally used as a carrier of the popup window, so that the problem that the view in a root controller of the main window based on application software is used for displaying the popup window and conflicts with the popup window of a system or other popup windows of the main window and the like is solved.
Popup parameter configuration step S13: and the user-defined popup configures popup parameters through the simple attribute of the simple management class.
Understandably, the popup parameters include a popup view parameter of the user-defined popup and a parameter of a popup pop-up animation.
Wherein, the user-defined popup configures popup view parameters through the simple attribute of the simple management class, as shown in fig. 5, including the following steps:
popup view parameter configuration step S131: setting popup view parameters under the simple interest management class, wherein the popup view parameters comprise the color and transparency of a shade of a user-defined popup, whether an event is closed in a blank spot and other parameters.
Setting popup window view parameters comprises setting popup frame mask transparency, colors, whether clicking is closed or not, closing animation, frequently, whether display is needed for n seconds and then automatically closing, and the like.
User-defined popup configuration step S132: and the user-defined popup configures the popup view parameters through the simple attribute of the simple management class.
Understandably, in the single benefit mode, the active single has only one window instance, and all instantiations to the single management class LKModal get the same instance, thus preventing other objects from instantiating themselves and ensuring that all objects access an instance. The simple mode has certain flexibility, the class controls the instantiation process, and the class has corresponding flexibility on the change of the instantiation process, thereby providing controlled access to the unique instance. The single property is controlled access to a unique instance, that is, unique access to the window, and as can be seen from step S131, a popup view parameter has been set in the single management class, and all the user-defined popups can be uniquely obtained according to the single property when performing parameter configuration.
The parameter configuration of the pop-up window pop-up animation with the pop-up window customized by the user, as shown in fig. 6, includes the following steps:
understandably, in a specific embodiment provided by the present application, three common pop-up animations are customized in a lazy loading manner and listed in an enumeration manner. Additionally, configuration parameters for custom animations may also be reserved to define the display popup.
Pop-up animation customizing step S133: customizing the pop-up window departure animation under the simple management class;
understandably, the three common popup window outgoing animations comprise fade-out, scratch-in and amplification, and the three common popup window outgoing animations are customized in a lazy loading mode, wherein the lazy loading mode is also called delayed loading, namely loading is carried out when a system is called, and loading is not carried out if the system is not called, so-called lazy loading is a method for rewriting get. The using steps comprise: 1) declare an attribute, which may be a private attribute or an attribute declared in the h-file, the lazy-loaded object is an attribute; 2) overwrite lazy loads outside the viewDidLoad in m, i.e., overwrite the getter method; 3) judging whether the object exists or not, if not, instantiating the attribute object in the if, setting an attribute card of the object, and adding a special method of the attribute card; 4) return _ object. The method is characterized in that whether the method exists is judged firstly when lazy loading is used, and instantiation is carried out again if the method does not exist.
Pop-up movie display step S134: listing the pop-up out-of-scene animations in an enumeration manner;
the popup presentation animation is listed in an enumeration mode, so that the development process is greatly simplified, the general form of enumeration type definition is that enum enumeration name { enumeration value table } should list all available values in the enumeration value table, also called enumeration elements, namely different popup animations, the popup animation is displayed in the enumeration mode, a user-defined view can complete the display of various common modes only by one line of codes, in addition, the user can reserve the configuration parameters of the user-defined animation, and the popup presentation animation is displayed according to the configuration parameters of the user-defined popup presentation animation.
In addition, configuration parameters of the user-defined popup presentation animation can be reserved, and presentation of the presentation animation can be performed according to the configuration parameters of the user-defined popup presentation animation.
S135 of the user-defined popup configuration step: and the user-defined popup configures the parameters of the popup outgoing animation through the simple attribute of the simple management class.
And configuring popup view parameters, and after configuring parameters of the popup departure animation under the single interest management class, a user-defined popup uniquely accesses and acquires the parameter configuration of the popup departure animation through the single interest attribute of the single interest management class.
Root controller creation step S2: and creating a root controller under the popup management window, wherein the root controller is used as a container of the popup.
Understandably, each window requires a root controller that happens to be the container for the popup, creating a root controller under the popup management window includes: creating a window (popup management window); creating a navigation controller based on the window, and setting a root controller of the navigation controller; the navigation controller is set as the root controller of the window. The popup is displayed based on the newly-built main view of the root controller of the window, and the problem that the popup is inconvenient to display in a service scene without a controller, such as some tool applications or some players and the like, is solved.
Child view controller creation step S3: creating a child view controller of a root controller under the root controller.
Understandably, a child view controller is created under the root controller, the child view controller for obtaining a child view, the child view for carrying a user-defined popup.
Child view acquisition step S4: and acquiring a sub-view of the popup management window through the sub-view controller, wherein the sub-view is used for bearing the user-defined popup, and the size of the user-defined popup is adapted to the size of a screen of user equipment.
Understandably, all the child views are acquired through the child view controller of the root controller through the child view controller, and the child view update callback method is rewritten under the root controller, so that the application software needs to recalculate the size of the screen according to the child view update callback method to adapt to the screen when the screen is switched due to the fact that the size, the position and the horizontal and vertical screen widths and heights of the child views are different, and the user information interaction experience is improved.
Specifically, as shown in fig. 4, the obtaining, by the sub-view controller, a sub-view of the popup management window, where the sub-view is used to carry the user-defined popup, and the size of the user-defined popup adapting to the screen size of the user device includes the following steps:
sub-view configuration step S41: rewriting a child view update callback method under the root controller.
Understandably, the update callback (UpdateCallback) can change the position size of the sub-view, and since the size, position, horizontal screen width and vertical screen height of the sub-view are different, the application software needs to recalculate the size of the screen according to the sub-view update callback method when the screen is switched, so that the sub-view adapts to the size of the screen.
Sub-view size acquisition step S42: and updating a callback method based on the sub-view, wherein the sub-view obtains the size adaptive to the screen size of the user equipment.
User-defined popup size acquisition step S43: and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
Understandably, the sub-view is used as a container for bearing the user-defined pop-up window, and the size of the user-defined pop-up window is consistent with that of the sub-view, so according to the sub-view size obtaining step S42, the sub-view obtains the size suitable for the screen size of the user equipment, and correspondingly, the size suitable for the screen size of the user equipment is also obtained by the user-defined pop-up window.
Pop-up window displaying step S5: and creating a popup window display interface, wherein all popup windows under the popup window management window are externally displayed through the popup window display interface.
Understandably, the interface is provided for creating an interface when the pop-up window needs to be displayed in the interface, namely, under the main view of the root controller of the custom window, all the user-defined pop-up windows are displayed outwards through the interface without considering the problem of multi-interface selection, so that the development and use processes are simplified. The parameter view, namely the popup content view to be displayed, comprises information to be transmitted to the user by the popup and an interaction process with the user. The other configuration parameters include bullet box mask transparency, color, whether a click is closed, closing animation, from time to time, whether automatic closing after n seconds is required for presentation, etc. The simple property, that is, the property held by the class itself in the simple mode, a class can return a reference (always the same) to the object and a method (necessarily a static method, usually using the name getInstance) to obtain the instance; when we call this method, if the reference held by the class is not empty, this reference is returned, if the reference held by the class is empty, an instance of the class is created and the reference of the instance is given to the reference held by the class; meanwhile, the constructor of the class is defined as a private method, so that codes at other places cannot instantiate the object of the class by calling the constructor of the class, and only a unique instance of the class is obtained by a static method provided by the class. The property configuration is singly held, and the popup window is stored to display other configuration parameters without being set for many times, and the configuration parameters are obtained in a fixed mode every time, so that the development process is simplified, multiple occupation of shared resources is avoided, and the performance of the system is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an iOS multi-scene popup management apparatus is provided, which corresponds to the iOS multi-scene convenient popup tool in the above-described embodiment one to one. As shown in fig. 7, the iOS multi-scenario popup management apparatus includes a user-defined popup configuration module, a root controller creation module, a child view acquisition module, and a popup display module. The functional modules are explained in detail as follows:
a user-defined popup configuration module 701, configured to create a single interest management class, and create a popup management window under the single interest management class, where the popup management window is used to manage a user-defined popup, and the user-defined popup configures popup parameters according to a single interest attribute of the single interest management class;
the user-defined pop-up window configuration module, as shown in fig. 8, includes: the profit management class creation unit 801: for creating a single interest management class. Popup management window creation unit 802: the method comprises the steps of creating a popup management window in a single profit mode, wherein the popup management window is used for managing user-defined popup. The pop-up window parameter configuration unit 803: and configuring popup parameters by the user-defined popup through the simple attribute of the simple management class.
A root controller creating module 702, configured to create a root controller under the popup management window, where the root controller is used as a container of the popup;
a child view controller creating module 703 for creating a child view controller of the root controller under the root controller;
a sub-view obtaining module 704, configured to create, through the sub-view controller, a sub-view of the popup management window, where the sub-view is used to carry the user-defined popup, and a size of the user-defined popup adapts to a screen size of a user device;
the sub-view obtaining module, as shown in fig. 9, includes: the sub-view configuration unit 901: rewriting a child view update callback method under the root controller. Sub-view size acquisition unit 902: and updating the callback method based on the child view, wherein the child view obtains the size adaptive to the screen size of the user equipment. A user-defined pop-up window size obtaining unit 903: and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
The pop-up window display module 705 is configured to create a pop-up window display interface, and all pop-up windows under the pop-up window management window are displayed through the pop-up window display interface.
For specific limitations of the iOS multi-scene popup management apparatus, reference may be made to the above limitations of the iOS multi-scene pop-up tool, which are not described herein again. All or part of the modules in the iOS multi-scene popup management apparatus can be implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, and a database 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 comprises a readable storage medium and an internal memory. The readable storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for the operating system and execution of computer-readable instructions in the readable storage medium. The database of the computer device is used for storing data related to the iOS multi-scenario convenience popup tool. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer readable instructions, when executed by a processor, implement an iOS multi-scenario facilitated popup tool. The readable storage media provided by the present embodiment include nonvolatile readable storage media and volatile readable storage media.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. 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 comprises a readable storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions. The internal memory provides an environment for the operating system and execution of computer-readable instructions in the readable storage medium. The network interface of the computer device is used for communicating with an external server through a network connection. The computer readable instructions, when executed by a processor, implement an iOS multi-scenario facilitated popup tool. The readable storage media provided by the present embodiment include nonvolatile readable storage media and volatile readable storage media.
In one embodiment, a computer device is provided, comprising a memory, a processor, and computer readable instructions stored on the memory and executable on the processor, the processor when executing the computer readable instructions implementing the steps of:
a step of configuring a user-defined popup, namely creating a single interest management class, and creating a popup management window under the single interest management class, wherein the popup management window is used for managing the user-defined popup, and the user-defined popup configures popup parameters through the single interest attribute of the single interest management class;
wherein, the user-defined popup window configuration step comprises the following steps: creating a simple management class: creating a single profit management class; a popup management window creating step: in the single profit mode, creating a popup management window, wherein the popup management window is used for managing user-defined popup; and a popup window parameter configuration step: and the user-defined popup configures popup parameters through the simple attribute of the simple management class.
A root controller creating step of creating a root controller under the popup management window, the root controller serving as a container of the popup;
a child view controller creating step of creating a child view controller of a root controller under the root controller;
a child view acquisition step, wherein a child view of the popup management window is created through the child view controller, the child view is used for bearing the user-defined popup, and the size of the user-defined popup adapts to the size of a screen of user equipment;
wherein, the sub-view acquisition step comprises: and a sub-view configuration step: rewriting a child view update callback method under the root controller; a sub-view size obtaining step: updating a callback method based on the child view, wherein the child view obtains the size adaptive to the screen size of the user equipment; user-defined popup window size acquisition step: and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
And a popup window display step, namely creating a popup window display interface, and displaying all popup windows under the popup window management window through the popup window display interface.
In one embodiment, one or more computer-readable storage media storing computer-readable instructions are provided, the readable storage media provided by the embodiments including non-volatile readable storage media and volatile readable storage media. The readable storage medium has stored thereon computer readable instructions which, when executed by one or more processors, perform the steps of:
a step of configuring a user-defined popup, namely creating a single interest management class, and creating a popup management window under the single interest management class, wherein the popup management window is used for managing the user-defined popup, and the user-defined popup configures popup parameters through the single interest attribute of the single interest management class;
wherein, the user-defined popup window configuration step comprises the following steps: creating a simple management class: creating a single profit management class; a popup management window creating step: in the single profit mode, creating a popup management window, wherein the popup management window is used for managing user-defined popup; and a popup window parameter configuration step: and the user-defined popup configures popup parameters through the simple attribute of the simple management class.
A root controller creating step of creating a root controller under the popup management window, the root controller serving as a container of the popup;
a child view controller creating step of creating a child view controller of a root controller under the root controller;
a child view acquisition step, wherein a child view of the popup management window is created through the child view controller, the child view is used for bearing the user-defined popup, and the size of the user-defined popup adapts to the size of a screen of user equipment;
wherein, the sub-view acquisition step comprises: and a sub-view configuration step: rewriting a child view update callback method under the root controller; a sub-view size obtaining step: updating a callback method based on the child view, wherein the child view obtains the size adaptive to the screen size of the user equipment; user-defined popup window size acquisition step: and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
And a popup window display step, namely creating a popup window display interface, and displaying all popup windows under the popup window management window through the popup window display interface.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to computer readable instructions, which may be stored in a non-volatile readable storage medium or a volatile readable storage medium, and when executed, the computer readable instructions may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. An iOS multi-scene pop-up tool, comprising:
creating a single interest management class, and creating a popup management window under the single interest management class, wherein the popup management window is used for managing a user-defined popup, and the user-defined popup configures popup parameters through the single interest attribute of the single interest management class;
creating a root controller under the popup management window, wherein the root controller is used as a container of a user-defined popup;
creating a child view controller of a root controller under the root controller;
acquiring a sub-view of the popup management window through the sub-view controller, wherein the sub-view is used for bearing the user-defined popup, and the size of the user-defined popup is adapted to the size of a screen of user equipment;
and creating a popup display interface, wherein the user-defined popup is displayed outwards through the popup display interface.
2. The iOS multi-scenario facilitated popup tool of claim 1, wherein the creating a single interest management class, creating a popup management window under the single interest management class, the popup management window for managing user-defined popup, the user-defined popup configuring popup parameters through a single interest attribute of the single interest management class, comprises:
the popup parameters comprise popup view parameters and parameters of popup outgoing animation;
the user-defined popup configures parameters of the popup view and parameters of the popup outgoing animation through the simple attribute of the simple management class;
the method for configuring the popup view parameters by the user-defined popup through the simple attribute of the simple management class comprises the following steps:
setting popup view parameters under the simple interest management class, wherein the popup view parameters comprise the color and transparency of a shade of a user-defined popup, whether an event is closed or not in a blank spot and other parameters;
and the user-defined popup configures the popup view parameters through the simple attribute of the simple management class.
3. The iOS multi-scenario facilitation popup tool of claim 2, wherein said user-defined popup configures parameters of a popup presentation through a monologue attribute of said monologue management class, comprising:
customizing the pop-up window departure animation under the simple management class;
listing the pop-up out-of-scene animations in an enumeration manner;
and the user-defined popup configures the parameters of the popup outgoing animation through the simple attribute of the simple management class.
4. The iOS multi-scenario facilitated popup tool of claim 1, wherein said obtaining, by the child view controller, a child view of the popup management window, the child view for carrying the user-defined popup, a size of the user-defined popup adapted to a screen size of a user device, comprises:
rewriting a child view update callback method under the root controller;
updating a callback method based on the sub-view, wherein the sub-view obtains a size adaptive to the screen size of the user equipment;
and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
5. An iOS multi-scene popup management apparatus, comprising:
the user-defined popup configuration module: the system comprises a single interest management class, a popup window and a popup window, wherein the single interest management class is used for creating a single interest management class, the popup window is used for managing a user-defined popup window, and the user-defined popup window configures popup window parameters through the single interest attribute of the single interest management class;
a root controller creation module: the root controller is used for creating a root controller under the popup management window and serves as a container of a user-defined popup;
the child view controller creation module: a child view controller for creating a root controller under the root controller;
a sub-view acquisition module: the child view controller is used for creating a child view of the popup management window, the child view is used for bearing the user-defined popup, and the size of the user-defined popup is adapted to the screen size of user equipment;
the pop-up window display module: the popup display interface is used for creating a popup display interface, and the user-defined popup is displayed outwards through the popup display interface.
6. The iOS multi-scenario popup management apparatus of claim 5, wherein the user-defined popup configuration module comprises:
a simple management class creation unit: for creating a single interest management class;
a popup management window creation unit: the system comprises a single profit management class, a popup management window and a popup module, wherein the single profit management class is used for creating the popup management window, and the popup management window is used for managing user-defined popup;
a popup window parameter configuration unit: and configuring popup parameters by the user-defined popup through the simple attribute of the simple management class.
7. The iOS multi-scene popup management apparatus of claim 5, wherein the sub-view acquiring module comprises:
a sub-view configuration unit: rewriting a child view update callback method under the root controller;
a sub-view size acquisition unit: updating a callback method based on the sub-view, wherein the sub-view obtains a size adaptive to the screen size of the user equipment;
a user-defined popup size acquisition unit: and based on the size of the sub-view, the user-defined popup obtains the size adaptive to the screen size of the user equipment.
8. A computer device comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the computer readable instructions are readable instructions generated by the engine of any one of claims 1 to 4.
9. One or more readable storage media storing code related to the engine of any of claims 1-4.
CN202110569492.6A 2021-05-25 2021-05-25 iOS multi-scene convenient popup tool, device, computer equipment and storage medium Pending CN113254133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110569492.6A CN113254133A (en) 2021-05-25 2021-05-25 iOS multi-scene convenient popup tool, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110569492.6A CN113254133A (en) 2021-05-25 2021-05-25 iOS multi-scene convenient popup tool, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113254133A true CN113254133A (en) 2021-08-13

Family

ID=77184326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110569492.6A Pending CN113254133A (en) 2021-05-25 2021-05-25 iOS multi-scene convenient popup tool, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113254133A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867870A (en) * 2021-09-29 2021-12-31 完美世界(北京)软件科技发展有限公司 Popup management system, popup control method, storage medium, and computer device
CN114296848A (en) * 2021-12-23 2022-04-08 深圳市宝视达光电有限公司 Conference all-in-one machine, screen segmentation display method and storage device
CN117221117A (en) * 2023-07-24 2023-12-12 瞳见科技有限公司 Normalized popup window generation method, system, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648641A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Automatic management method and system for multi-level pop-up boxes on iOS system device
CN107153545A (en) * 2017-05-09 2017-09-12 北京酷我科技有限公司 A kind of method that pop-up is managed collectively in iOS system
CN108459896A (en) * 2018-03-09 2018-08-28 深圳市富途网络科技有限公司 A kind of the real-time messages notification bar and methods of exhibiting of application program for mobile terminal
CN111930283A (en) * 2020-10-12 2020-11-13 武汉深之度科技有限公司 Message display method and computing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648641A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Automatic management method and system for multi-level pop-up boxes on iOS system device
CN107153545A (en) * 2017-05-09 2017-09-12 北京酷我科技有限公司 A kind of method that pop-up is managed collectively in iOS system
CN108459896A (en) * 2018-03-09 2018-08-28 深圳市富途网络科技有限公司 A kind of the real-time messages notification bar and methods of exhibiting of application program for mobile terminal
CN111930283A (en) * 2020-10-12 2020-11-13 武汉深之度科技有限公司 Message display method and computing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IMKATA: "iOS-UI篇-UIWindow", pages 1 - 8, Retrieved from the Internet <URL:https://www.jianshu.com/p/c4598c1d0868> *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867870A (en) * 2021-09-29 2021-12-31 完美世界(北京)软件科技发展有限公司 Popup management system, popup control method, storage medium, and computer device
CN114296848A (en) * 2021-12-23 2022-04-08 深圳市宝视达光电有限公司 Conference all-in-one machine, screen segmentation display method and storage device
CN114296848B (en) * 2021-12-23 2024-03-19 深圳市宝视达光电有限公司 Conference all-in-one machine, screen segmentation display method and storage device
CN117221117A (en) * 2023-07-24 2023-12-12 瞳见科技有限公司 Normalized popup window generation method, system, terminal and storage medium
CN117221117B (en) * 2023-07-24 2024-03-29 瞳见科技有限公司 Normalized popup window generation method, system, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN113254133A (en) iOS multi-scene convenient popup tool, device, computer equipment and storage medium
CN110020323B (en) Page switching method and system for hybrid application, computer equipment and storage medium
US20190188012A1 (en) Method, device, terminal and storage medium for processing application
CN108351772A (en) Across the identifier of application example
US20110271268A1 (en) System and method for updating unified extensible firmware interface setting information
US11221860B2 (en) Managing multi-single-tenant SaaS services
US20190347190A1 (en) Code usage map
US20130067456A1 (en) Application configuration framework for enterprise resource planning application installation
CN110780897B (en) Code changing method and device
CN112148164B (en) Arranging method and device of multi-cluster system, computer equipment and storage medium
CN109542563B (en) Multi-state integrated android page management method, device and system
CN104699503A (en) Method and device for replacing function execution logic in Android system
CN110580284A (en) Entity disambiguation method and device, computer equipment and storage medium
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
CN105593810A (en) Application-to-application launch windowing
US20200104144A1 (en) Mobile application management by run-time insertion of a replacement instrumentation object into a mobile application process
CN103902727A (en) Network search method and device
CN113050962B (en) Mobile service upgrading method, device and terminal
CN114237755A (en) Application running method and device, electronic equipment and storage medium
CN113296799A (en) Application program installation method and device, electronic equipment and storage medium
CN114860377A (en) Service processing method, device and equipment for container operation and maintenance
US11425203B2 (en) Commissioning a virtualized network function
CN112597408A (en) System fusion method, device, equipment and storage medium
CN112182456A (en) Method and device for adapting various map clients based on JavaScript
CN112860419A (en) Multi-instance task execution method and device, terminal equipment and computer storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210813

WD01 Invention patent application deemed withdrawn after publication