Method, device and electronic device for creating pop-up view

A technology of electronic equipment and views, applied in software engineering design, electrical digital data processing, instruments, etc., can solve the problem of low development efficiency, and achieve the effect of improving development efficiency and reducing the amount of code

Active Publication Date: 2020-10-16
WUHAN DOUYU NETWORK TECH CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the development process, every time a pop-up view is created, it is necessary to create a new view class and write a large amount of repetitive code such as view layout logic, user interaction logic, display and hide logic, and the development efficiency is not high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and electronic device for creating pop-up view
  • Method, device and electronic device for creating pop-up view
  • Method, device and electronic device for creating pop-up view

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0028] Please refer to figure 2 , figure 2 A flowchart of a method for creating a pop-up view provided by an embodiment of the present invention is shown. The method for creating a pop-up view includes the following steps:

[0029] Step S101, creating a bullet-type view protocol according to the general characteristics of the pop-up type view.

[0030] In the embodiment of the present invention, the general characteristics of the pop-up view may be, but not limited to, pop-up / hidden characteristics, user interaction characteristics, layout characteristics, and the like. The pop-up view protocol is a collection of methods, including the layout method, user interaction method, and display and hide methods of the pop-up view. The pop-up view protocol can be a protocol in the iOS SDK.

[0031]As an implementation, creating a pop-up class view protocol may include the following steps, where the pop-up class view can be represented by AlertView:

[0032] First, create a header...

no. 2 example

[0087] Please refer to Image 6 , Image 6 A schematic block diagram of an apparatus 200 for creating a pop-up view provided by an embodiment of the present invention is shown. The pop-up view creation device 200 includes a protocol creation module 201 , a protocol addition module 202 and an execution module 203 .

[0088] The protocol creation module 201 is configured to create a pop-up view protocol according to the general characteristics of the pop-up view.

[0089] In the embodiment of the present invention, the protocol creating module 201 may be used to execute step S101.

[0090] The protocol adding module 202 is used to add the implementation of the pop-up class view protocol to UIView by using the extension class, wherein UIView is the base class of all views in the iOS system.

[0091] In the embodiment of the present invention, the protocol adding module 202 may be used to execute step S102.

[0092] Please refer to Figure 7 , Figure 7 for Image 6 A schem...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of iOS development, and provides a pop-up box view creation method and device and an electronic device. The method comprises the steps that according to general characteristics of pop-up box class views, pop-up box class view protocols are created; by using an extension class, the pop-up box class view protocols are added into a UIView, wherein the UIView is a base class of all views in an iOS system; the extension class is introduced into any one view class, so that the view class has the function of the pop-up box view. Compared with the prior art that the UIView is inherited to develop the pop-up box views, through simple configuration, existing views quickly have the characteristics of a pop-up box, the code quantity is greatly lowered, and the development efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of iOS development, in particular to a method, device and electronic equipment for creating a pop-up view. Background technique [0002] In iOS development, a pop-up box is a very common view, for example, a pop-up warning message for the user to confirm or cancel, a pop-up gender selection box for the user to choose their gender, a pop-up input box for the user to enter their mobile phone number, etc. The iOS SDK has built-in two controls, UIAlertView and UIActionSheet, to realize the effect of pop-up view, but only supports several specific styles, and the customization is extremely low. Therefore, there is a technology of inheriting UIView to develop the pop-up view. This technology customizes the pop-up view through a subclass of UIView with a custom style, so that the pop-up view is suitable for the overall style of the application. However, in the development process, every time a pop-up view is creat...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 黄露洋陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products