CN114265530A - Button construction and response method, device and terminal based on iOS system - Google Patents

Button construction and response method, device and terminal based on iOS system Download PDF

Info

Publication number
CN114265530A
CN114265530A CN202111489646.7A CN202111489646A CN114265530A CN 114265530 A CN114265530 A CN 114265530A CN 202111489646 A CN202111489646 A CN 202111489646A CN 114265530 A CN114265530 A CN 114265530A
Authority
CN
China
Prior art keywords
button
area
uibutton
transparent
response
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
CN202111489646.7A
Other languages
Chinese (zh)
Inventor
王金刚
吴志博
唐进
段凌云
陈正超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guiyang Yuwan Technology Co ltd
Original Assignee
Guiyang Yuwan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guiyang Yuwan Technology Co ltd filed Critical Guiyang Yuwan Technology Co ltd
Priority to CN202111489646.7A priority Critical patent/CN114265530A/en
Publication of CN114265530A publication Critical patent/CN114265530A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a button construction and response method, device and terminal based on an iOS system, wherein UIButton (a response area is a set shape) inherited from an iOS native button is utilized; setting an upper-layer picture (comprising a button area and an auxiliary area which are complementary to form a response area, wherein the button area can be a graph in any shape, the button area and the auxiliary area are opaque, pixel points in one area are transparent, and pixel points in the other area are transparent) on the UIbutton, and binding a user click event so as to judge whether to respond to the user click event according to whether a finger drop point of a user is positioned in the button area when the corresponding button on a screen of the UIbutton is clicked. Therefore, the buttons with the required shape response areas, such as the diamond shapes and the cartoon head portrait graphs, can be simply and effectively constructed so as to respond to the click events of the users when the finger drop points of the users are located in the button areas, and the learning cost of developers can be effectively reduced.

Description

Button construction and response method, device and terminal based on iOS system
Technical Field
The application relates to the technical field of data processing, in particular to a button construction and response method, device and terminal based on an iOS system.
Background
Some business scenarios are encountered in iOS development, a specific area of a button (which may be various graphics) is required to respond to a click event of a user, and a default response area of a control carried by an iOS system is generally a rectangular area or a circular area, which is not supported by other graphics. If a button click in a specific graphic area is required to respond to a user event, and other areas do not respond to the user event, currently, there is no good way for the iOS to handle.
For example, assuming that the response area of the request button is a diamond area, the conventional method determines whether the user's finger falls within the diamond area to determine whether to respond. However, the existing method has the following disadvantages by calculating whether the finger of the user is in the graphic range: firstly, for complex graphs, the calculation is complex, even Bezier curves are needed to be drawn to solve the problem, the development difficulty is high, the operation is difficult, and the method is not friendly to developers; secondly, the flexibility is not high, and the range calculation and processing modes of different graphs are different.
Disclosure of Invention
An object of the embodiments of the present application is to provide a button construction and response method, device and terminal based on an iOS system, so as to smartly solve the problem of click events of buttons with various shapes in a simple and effective manner, and reduce the learning cost of developers.
In order to achieve the above object, embodiments of the present application are implemented as follows:
in a first aspect, an embodiment of the present application provides a button building method based on an iOS system, including: acquiring UIButton inherited from an iOS native button, wherein the response area of the UIButton is a set shape; acquiring an upper layer picture, wherein the upper layer picture comprises a button area and an auxiliary area which are complementary to the response area, the button area can be a figure with any shape, and in the button area and the auxiliary area, pixel points in one area are opaque, and pixel points in the other area are transparent; and setting the upper-layer picture on the UIbutton, and binding a user click event, so that when a corresponding button of the UIbutton on a screen is clicked, whether the user click event is responded is judged according to whether a finger drop point of the user is located in the button area.
In the embodiment of the present application, UIButton (response region is set shape) inherited from the iOS native button is utilized; setting an upper-layer picture (comprising a button area and an auxiliary area which are complementary to form a response area, wherein the button area can be a graph in any shape, the button area and the auxiliary area are opaque, pixel points in one area are transparent, and pixel points in the other area are transparent) on the UIbutton, and binding a user click event so as to judge whether to respond to the user click event according to whether a finger drop point of a user is positioned in the button area when the corresponding button on a screen of the UIbutton is clicked. By the method, the buttons of the response areas with the required shapes (which can be any shapes such as diamonds and cartoon head portrait graphs) can be simply and effectively constructed so as to respond to the click events of the user when the finger drop points of the user are located in the button areas, and the learning cost of developers can be effectively reduced.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the pixel points in the button area are opaque, and the pixel points in the auxiliary area are transparent.
In the implementation mode, as the button area generally needs to show various shapes or patterns, the color of the button can be designed to be richer, so that the pixel points in the button area are opaque, and the pixel points in the auxiliary area are transparent, thereby being more in line with the design requirements in practical application.
In a second aspect, an embodiment of the present application provides a button response method based on an iOS system, which is applied to a button constructed by the first aspect or the first possible implementation manner of the first aspect, where the method includes: acquiring a finger drop point when a user clicks a button on a screen; acquiring pixel information at the finger drop point, wherein the pixel information is used for revealing whether the pixel is transparent or not; and determining whether to respond to the current user click event or not based on whether the pixel information at the finger landing point is transparent or not.
In the embodiment of the application, the finger drop point when a user clicks the button on the screen is obtained; further acquiring pixel information of the finger drop point, wherein the pixel information is used for revealing whether the pixel is transparent or not; thereby determining whether to respond to the user click event of this time based on whether the pixel information at the finger landing point is transparent. By the method, whether the part clicked by the user is in the button area can be simply, efficiently and reliably judged, so that whether the user clicks an event is responded or not is determined, and the functions of buttons in various shapes are realized.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the acquiring a finger drop point when the user clicks an on-screen button includes: when the button is clicked in the corresponding area on the screen by a user, a function- (BOOL) point inside (CGPoint) point with event (UIEvent) event is triggered, and the finger drop point is determined through the point parameter.
In the implementation mode, when the button is clicked in the corresponding area on the screen by a user, a function- (CGPoint) -point with event (UIEvent) is triggered, and the finger drop point is determined through the point parameter, so that the finger drop point can be simply, efficiently and accurately determined, a developer does not need to perform additional algorithm design, and the development difficulty is reduced.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the determining whether to respond to the current user click event based on whether the pixel information at the finger drop point is transparent includes: if the pixel information at the finger drop point is transparent, the current user click event is not responded; and responding to the current user click event if the pixel information at the finger drop point is opaque.
In the implementation mode, the pixel points of the button area are opaque, and the pixel points of the auxiliary area are transparent, so that the current user click event is not responded if the pixel information of the finger drop point is transparent; and responding to the current user click event if the pixel information at the finger drop point is opaque. The mode can simply and accurately judge whether the finger drop point is positioned in the button area.
In a third aspect, an embodiment of the present application provides an iOS system-based button building apparatus, including: the UIButton unit is used for acquiring UIButton inherited from the iOS native button, wherein the response area of the UIButton is a set shape; the upper-layer picture unit is used for acquiring an upper-layer picture, wherein the upper-layer picture comprises a button area and an auxiliary area which are complementary to the response area, the button area can be a graph with any shape, and in the button area and the auxiliary area, pixel points in one area are opaque, and pixel points in the other area are transparent; and the button building unit is used for setting the upper-layer picture on the UIbutton and binding a user click event so as to judge whether to respond to the user click event according to whether a finger drop point of a user is positioned in the button area when the corresponding button of the UIbutton on the screen is clicked.
In a fourth aspect, an embodiment of the present application provides an iOS system-based button response apparatus, applied to a button constructed by the first aspect or the first possible implementation manner of the first aspect, where the apparatus includes: the finger drop point acquisition unit is used for acquiring a finger drop point when a user clicks a button on a screen; the pixel information acquisition unit is used for acquiring pixel information of the finger landing point, wherein the pixel information is used for revealing whether the pixel is transparent or not; and the user click event response unit is used for determining whether to respond to the current user click event based on whether the pixel information at the finger drop point is transparent.
In a fifth aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a stored program, where the program, when running, controls a device in which the storage medium is located to execute the iOS system-based button building method according to the first aspect or the first possible implementation manner of the first aspect, or execute any one of the iOS system-based button responding methods according to the second aspect or the possible implementation manners of the second aspect.
In a sixth aspect, an embodiment of the present application provides a terminal device, including a memory and a processor, where the memory is configured to store information including program instructions, and the processor is configured to control execution of the program instructions, where the program instructions are loaded and executed by the processor, and the iOS system-based button building method described in the first aspect or the first possible implementation manner of the first aspect is implemented, or the iOS system-based button response method described in any of the second aspect or the possible implementation manner of the second aspect is implemented.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other relevant drawings from these drawings without inventive effort.
Fig. 1 is a flowchart of a button building method based on an iOS system according to an embodiment of the present application.
Fig. 2 is a schematic diagram of setting an upper-layer picture on the UIButton according to an embodiment of the present disclosure.
Fig. 3 is a flowchart of a button response method based on the iOS system according to an embodiment of the present application.
Fig. 4 is a block diagram of a button building apparatus based on an iOS system according to an embodiment of the present application.
Fig. 5 is a block diagram of a button response apparatus based on an iOS system according to an embodiment of the present application.
Fig. 6 is a block diagram of a terminal device according to an embodiment of the present application.
Icon: 10-a button building means based on the iOS system; 11-UIButton unit; 12-upper picture element; 13-a button building element; 20-iOS system based button response means; 21-a finger drop point acquisition unit; 22-a pixel information acquisition unit; 23-user click event response unit; 30-an electronic device; 31-a memory; 32-a communication module; 33-a bus; 34-a processor.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a button building method based on an iOS system according to an embodiment of the present application. In the present embodiment, the iOS system-based button building method may be performed by the terminal device, including step S11, step S12, and step S13.
In order to simply and efficiently construct the button of the desired shape, the terminal device may perform step S11.
Step S11: and acquiring the UIButton inherited from the iOS native button, wherein the response area of the UIButton is a set shape.
In this embodiment, the terminal device may obtain the UIButton inherited from the iOS native button. For example, a class may be customized that inherits the UIButton class provided from the iOS native button. Since the UIButton inherits from the iOS native button, its shape (i.e., response region) is relatively fixed, typically rectangular or circular.
Then, the terminal device may perform step S12.
Step S12: acquiring an upper layer picture, wherein the upper layer picture comprises a button area and an auxiliary area which are complementary to the response area, the button area can be a figure with any shape, and the pixel points of one area are opaque and the pixel points of the other area are transparent.
In this embodiment, the terminal device may obtain an upper layer picture. The upper layer picture here needs to include a button region and an auxiliary region which are complementary to the response region, i.e., the shape of the upper layer picture coincides with the shape (response region) of the UIButton. The button area is used to indicate the area that needs the button to respond, and the auxiliary area can be defined as the area that needs the button not to respond. And the pixel points in one area are opaque, and the pixel points in the other area are transparent.
Illustratively, the pixel points in the button area are opaque, and the pixel points in the auxiliary area are transparent; or the pixel points in the button area are transparent, and the pixel points in the auxiliary area are opaque. In this embodiment, the example that the pixel points in the button region are opaque and the pixel points in the auxiliary region are transparent is taken as an example for explanation, and should not be considered as a limitation of the present application. Because the button area generally needs to show various shapes or patterns, the color of the button can be designed to be richer, so that the pixel points in the button area are opaque, and the pixel points in the auxiliary area are transparent, thereby being more in line with the design requirements in practical application.
Based on this, the button area realizing various complex shapes can be converted from the original pattern construction to the picture processing, the picture processing method is relatively simple to construct the complex shapes, the part of work is usually processed by the front end, and the button shapes are easier to meet the requirements.
For example, a base picture (the shape of the base picture is consistent with the shape of the UIButton) may be processed by the PS, a closed shape satisfying the requirement may be determined from the base picture, so that one closed shape (button region) and one (or more) corner shapes (all the corner shapes are collectively referred to as an auxiliary region) may be divided on the base picture, and a part of the corner shape may be set as a transparent channel (alpha channel).
After acquiring the upper layer picture, the terminal device may execute step S13.
Step S13: and setting the upper-layer picture on the UIbutton, and binding a user click event, so that when a corresponding button of the UIbutton on a screen is clicked, whether the user click event is responded is judged according to whether a finger drop point of the user is located in the button area.
In this embodiment, the terminal device may set the upper layer picture on the UIButton, and bind the user click event. Therefore, when the corresponding button of the UIButton on the screen is clicked, whether the user clicks an event or not can be judged according to whether the finger drop point of the user is located in the button area or not.
As shown in fig. 2, the upper layer picture is set on the UIButton, the upper layer picture may cover the response area of the UIButton, and the button area and the auxiliary area of the upper layer picture are also located in the response area of the UIButton. However, the difference between the button region and the auxiliary region (the pixel point in one region is transparent, and the pixel point in the other region is opaque) can divide the response region of the UIButton into two regions, so that the response to the click of the button region is realized, and the response to the click of the auxiliary region is not realized.
Utilizing the UIButton (response region is set shape) provided by inheriting from the iOS native button; setting an upper-layer picture (comprising a button area and an auxiliary area which are complementary to form a response area, wherein the button area can be a graph in any shape, the button area and the auxiliary area are opaque, pixel points in one area are transparent, and pixel points in the other area are transparent) on the UIbutton, and binding a user click event so as to judge whether to respond to the user click event according to whether a finger drop point of a user is positioned in the button area when the corresponding button on a screen of the UIbutton is clicked. By the method, the buttons of the response areas with the required shapes (which can be any shapes such as diamonds and cartoon head portrait graphs) can be simply and effectively constructed so as to respond to the click events of the user when the finger drop points of the user are located in the button areas, and the learning cost of developers can be effectively reduced.
Referring to fig. 3, fig. 3 is a flowchart illustrating a button response method based on an iOS system according to an embodiment of the present application.
In the present embodiment, the iOS system based button response method may be implemented by relying on a button constructed by the iOS system based button construction method. Specifically, the iOS system-based button response method may include step S21, step S22, and step S23.
In this embodiment, a button (or a prompt user, where the area is an operation area that can be clicked to trigger a user click event) may be presented to the user on the screen of the terminal device, and the user may click the button or click an area other than the button. As long as the user makes a click, the terminal device may perform step S21 based on the click of the user.
Step S21: and acquiring a finger drop point when a user clicks a button on the screen.
In this embodiment, the terminal device may obtain a finger drop point when the user clicks the on-screen button based on the click of the user.
When the button is clicked, a function (CGPoint) point with event is triggered, so that the finger drop point can be determined through the point parameter. Therefore, the finger drop point can be simply, efficiently and accurately determined, developers do not need to carry out additional algorithm design, and the development difficulty is reduced.
After determining the finger drop point, the terminal device may execute step S22.
Step S22: and acquiring pixel information at the finger drop point, wherein the pixel information is used for revealing whether the pixel is transparent or not.
In this embodiment, the terminal device may obtain pixel information at the finger drop point, where the pixel information is used to reveal whether the pixel at the finger drop point is transparent. For example, the terminal device may determine the color of the pixel point at the finger drop point, thereby determining whether the color of the pixel point is a transparent point.
After acquiring the pixel information at the finger drop point, the terminal device may execute step S23.
Step S23: and determining whether to respond to the current user click event or not based on whether the pixel information at the finger landing point is transparent or not.
In this embodiment, the terminal device may determine whether to respond to the user click event of this time based on whether the pixel information at the finger landing point is transparent.
The method comprises the steps of obtaining a finger drop point when a user clicks a button on a screen; further acquiring pixel information of the finger drop point, wherein the pixel information is used for revealing whether the pixel is transparent or not; thereby determining whether to respond to the user click event of this time based on whether the pixel information at the finger landing point is transparent. By the method, whether the part clicked by the user is in the button area can be simply, efficiently and reliably judged, so that whether the user clicks an event is responded or not is determined, and the functions of buttons in various shapes are realized.
Illustratively, taking the example that the pixel point in the button region is opaque and the pixel point in the auxiliary region is transparent, the terminal device may determine:
if the pixel information of the finger drop point is transparent, the finger drop point is located in the auxiliary area and not in the button area, and therefore the current user click event is not responded.
If the pixel information at the finger drop point is opaque, it indicates that the finger drop point is located in the button area, and therefore, the current user click event can be responded.
The mode can simply and accurately judge whether the finger drop point is positioned in the button area.
Referring to fig. 4, fig. 4 is a block diagram of a button building apparatus 10 based on the iOS system according to an embodiment of the present application.
In this embodiment, the iOS system-based button building apparatus 20 may include:
and the UIButton unit 11 is used for acquiring the UIButton inherited from the iOS native button, wherein the response area of the UIButton is a set shape.
The upper picture unit 12 is configured to obtain an upper picture, where the upper picture includes a button region and an auxiliary region that are complementary to the response region, the button region may be a graphic with any shape, and in the button region and the auxiliary region, a pixel point in one region is opaque, and a pixel point in the other region is transparent.
And the button building unit 13 is configured to set the upper-layer picture on the UIButton, and bind a user click event, so that when a corresponding button of the UIButton on the screen is clicked, whether the user click event is responded is determined according to whether a finger drop point of the user is located in the button area.
Referring to fig. 5, fig. 5 is a block diagram of a button response device 20 based on an iOS system according to an embodiment of the present application.
In the present embodiment, the iOS system based button response apparatus 20 may be applied to a button constructed by the iOS system based button construction method in the present embodiment, and the iOS system based button response apparatus 20 may include:
and a finger drop point acquisition unit 21, configured to acquire a finger drop point when the user clicks the on-screen button.
A pixel information obtaining unit 22, configured to obtain pixel information at the finger landing point, where the pixel information is used to reveal whether the pixel is transparent.
And the user click event response unit 23 is configured to determine whether to respond to the current user click event based on whether the pixel information at the finger drop point is transparent.
In this embodiment, the finger-falling-point obtaining unit 21 is further configured to trigger a function- (CGPoint) point with event when the button is clicked in a corresponding area on the screen by the user, and determine the finger-falling point according to the point parameter.
In this embodiment, the pixel point of the button region is opaque, the pixel point of the auxiliary region is transparent, and the user click event response unit 23 is further configured to not respond to the current user click event when the pixel information at the finger drop point is transparent; responding to the current user click event when the pixel information at the finger landing point is opaque.
Referring to fig. 6, fig. 6 is a block diagram of a terminal device 30 according to an embodiment of the present disclosure.
In this embodiment, the terminal device 30 may be a personal computer, a tablet computer, a smart phone, etc. with an iOS system, and is not limited herein.
Illustratively, the terminal device 30 may include: a communication module 32 connected to the outside through a network, one or more processors 34 for executing program instructions, a bus 33, and a memory 31 of different form, such as a disk, ROM, or RAM, or any combination thereof. And, the terminal device 30 also has a display screen (e.g., a touch screen) that can display buttons and acquire click information of the user. The memory 31, the communication module 32, and the processor 34 may be connected by a bus 33.
Illustratively, the memory 31 has stored therein a program. The processor 34 may call and execute the programs from the memory 31 so that the iOS system-based button building method or the iOS system-based button response method can be implemented by executing the programs.
The embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device in which the storage medium is located is controlled to execute the iOS system-based button building method in the embodiment, or execute the iOS system-based button response method in the embodiment.
To sum up, the embodiment of the present application provides a button construction and response method, device, and terminal based on an iOS system, which utilizes a UIButton (response region is a set shape) inherited from an iOS native button; setting an upper-layer picture (comprising a button area and an auxiliary area which are complementary to form a response area, wherein the button area can be a graph in any shape, the button area and the auxiliary area are opaque, pixel points in one area are transparent, and pixel points in the other area are transparent) on the UIbutton, and binding a user click event so as to judge whether to respond to the user click event according to whether a finger drop point of a user is positioned in the button area when the corresponding button on a screen of the UIbutton is clicked. By the method, the buttons of the response areas with the required shapes (which can be any shapes such as diamonds and cartoon head portrait graphs) can be simply and effectively constructed so as to respond to the click events of the user when the finger drop points of the user are located in the button areas, and the learning cost of developers can be effectively reduced.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (9)

1. A button building method based on an iOS system is characterized by comprising the following steps:
acquiring UIButton inherited from an iOS native button, wherein the response area of the UIButton is a set shape;
acquiring an upper layer picture, wherein the upper layer picture comprises a button area and an auxiliary area which are complementary to the response area, the button area can be a figure with any shape, and in the button area and the auxiliary area, pixel points in one area are opaque, and pixel points in the other area are transparent;
and setting the upper-layer picture on the UIbutton, and binding a user click event, so that when a corresponding button of the UIbutton on a screen is clicked, whether the user click event is responded is judged according to whether a finger drop point of the user is located in the button area.
2. The iOS system-based button building method of claim 1, wherein pixel points of the button area are opaque and pixel points of the auxiliary area are transparent.
3. An iOS system-based button response method applied to the button constructed by claim 1 or 2, the method comprising:
acquiring a finger drop point when a user clicks a button on a screen;
acquiring pixel information at the finger drop point, wherein the pixel information is used for revealing whether the pixel is transparent or not;
and determining whether to respond to the current user click event or not based on whether the pixel information at the finger landing point is transparent or not.
4. The iOS system based button response method of claim 3, wherein the obtaining a finger drop point when the user clicks an on-screen button comprises:
when the button is clicked in the corresponding area on the screen by a user, a function (CGPoint) point with event (UIEvent) is triggered, and the finger drop point is determined through the point parameter.
5. The iOS system-based button response method of claim 3, wherein the pixel points of the button area are opaque, the pixel points of the auxiliary area are transparent, and the determining whether to respond to the current user click event based on whether the pixel information at the finger landing point is transparent comprises:
if the pixel information at the finger drop point is transparent, the current user click event is not responded;
and responding to the current user click event if the pixel information at the finger drop point is opaque.
6. An iOS system based button building apparatus, comprising:
the UIButton unit is used for acquiring UIButton inherited from the iOS native button, wherein the response area of the UIButton is a set shape;
the upper-layer picture unit is used for acquiring an upper-layer picture, wherein the upper-layer picture comprises a button area and an auxiliary area which are complementary to the response area, the button area can be a graph with any shape, and in the button area and the auxiliary area, pixel points in one area are opaque, and pixel points in the other area are transparent;
and the button building unit is used for setting the upper-layer picture on the UIbutton and binding a user click event so as to judge whether to respond to the user click event according to whether a finger drop point of a user is positioned in the button area when the corresponding button of the UIbutton on the screen is clicked.
7. An iOS system-based button response device applied to the button constructed by claim 1 or 2, the device comprising:
the finger drop point acquisition unit is used for acquiring a finger drop point when a user clicks a button on a screen;
the pixel information acquisition unit is used for acquiring pixel information of the finger landing point, wherein the pixel information is used for revealing whether the pixel is transparent or not;
and the user click event response unit is used for determining whether to respond to the current user click event based on whether the pixel information at the finger drop point is transparent.
8. A storage medium comprising a stored program, wherein the program, when executed, controls a device on which the storage medium is located to execute the iOS system-based button building method of claim 1 or 2, or the iOS system-based button response method of any one of claims 3 to 5.
9. A terminal device comprising a memory for storing information including program instructions and a processor for controlling execution of the program instructions, the program instructions being loaded and executed by the processor, the iOS system-based button building method of claim 1 or 2, or implementing the iOS system-based button response method of any one of claims 3 to 5.
CN202111489646.7A 2021-12-08 2021-12-08 Button construction and response method, device and terminal based on iOS system Pending CN114265530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111489646.7A CN114265530A (en) 2021-12-08 2021-12-08 Button construction and response method, device and terminal based on iOS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111489646.7A CN114265530A (en) 2021-12-08 2021-12-08 Button construction and response method, device and terminal based on iOS system

Publications (1)

Publication Number Publication Date
CN114265530A true CN114265530A (en) 2022-04-01

Family

ID=80826506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111489646.7A Pending CN114265530A (en) 2021-12-08 2021-12-08 Button construction and response method, device and terminal based on iOS system

Country Status (1)

Country Link
CN (1) CN114265530A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116560958A (en) * 2023-04-24 2023-08-08 成都赛力斯科技有限公司 Implementation method, device, terminal and storage medium for judging event occurrence position

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116560958A (en) * 2023-04-24 2023-08-08 成都赛力斯科技有限公司 Implementation method, device, terminal and storage medium for judging event occurrence position
CN116560958B (en) * 2023-04-24 2024-03-01 重庆赛力斯凤凰智创科技有限公司 Implementation method, device, terminal and storage medium for judging event occurrence position

Similar Documents

Publication Publication Date Title
KR102521734B1 (en) Wearable device for executing a plurality of applications and method of operating the same
CN107608615B (en) Fingerprint identification function starting method and device, terminal and storage medium
US10901608B2 (en) Method for recognizing a screen-off gesture, and storage medium and terminal thereof
CN106445292B (en) Method and system for managing application programs in different body modes
CN107066188B (en) A kind of method and terminal sending screenshot picture
CN107608550B (en) Touch operation response method and device
CN110442267B (en) Touch operation response method and device, mobile terminal and storage medium
US11061558B2 (en) Touch operation response method and device
CN114779987B (en) Method, device, terminal and storage medium for displaying content
US11086442B2 (en) Method for responding to touch operation, mobile terminal, and storage medium
CN104516640A (en) Touch display device and method for dynamically setting touch confinement region
US11194425B2 (en) Method for responding to touch operation, mobile terminal, and storage medium
CN107678744A (en) Application controls pattern customizing method, device and computer-readable recording medium
CN114489648A (en) Page generation method, system, terminal and medium
CN109144447A (en) Split screen window adjusting method, device, storage medium and electronic equipment
CN114265530A (en) Button construction and response method, device and terminal based on iOS system
CN113885749A (en) Icon display method and device and electronic equipment
CN111324398A (en) Recent content processing method, device, terminal and storage medium
WO2019024507A1 (en) Touch control method and device, and terminal
CN112578961B (en) Application identifier display method and device
CN111796736B (en) Application sharing method and device and electronic equipment
CN114115639A (en) Interface control method and device, electronic equipment and storage medium
CN113902841A (en) Image drawing method and device, electronic equipment and readable storage medium
CN111752631A (en) Parameter setting method and device of application program, electronic equipment and storage medium
CN111880702A (en) Interface switching method and device and electronic equipment

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