Icon switching method and device, electronic device and computer readable storage medium
By intercepting or hiding the icon switching prompt pop-ups automatically generated by the iOS system, the problem of switching app icons in iOS affecting user experience has been solved, achieving automated processing and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- PINGAN YIQIANBAO E COMMERCE CO LTD
- Filing Date
- 2023-03-14
- Publication Date
- 2026-07-24
AI Technical Summary
When switching app icons in iOS, a pop-up notification automatically generated by the system needs to be manually closed by the user, which affects the user experience.
By using method exchange technology, the system intercepts or hides and automatically disables the icon switching prompt pop-up automatically generated by the iOS system, retaining only the prompt pop-up set by the developer.
This reduces redundant user operations, improves user experience, and avoids interference from system prompts and pop-ups in app usage.
Smart Images

Figure CN116149527B_ABST
Abstract
Description
[Technical Field]
[0001] This application relates to the field of mobile terminal technology, and proposes an icon switching method and device, electronic device and computer-readable storage medium. [Background Technology]
[0002] App icons significantly impact a user's first impression and sustained engagement with an app. Therefore, dynamically switching app icons based on different scenarios can enhance the user experience while garnering attention. iOS supports app developers dynamically changing app icons. Generally, this can be achieved by adding a new set of icons to the Assets.xcassets file of the app's project and enabling multiple icon sets in the project configuration.
[0003] However, every time an app icon is changed, the iOS system automatically generates a pop-up to notify the user that the app icon has changed. This pop-up needs to be manually closed by the user. In real-world scenarios, users don't need this kind of notification information. The appearance of this pop-up actually requires the user to manually close it, making it both redundant and affecting the user's experience of using the app.
[0004] Therefore, reducing the negative impact of switching app icons on user experience in iOS and improving the automation level of gray-scale releases have become urgent technical problems to be solved. [Summary of the Invention]
[0005] This application provides an icon switching method and apparatus, an electronic device, and a computer-readable storage medium, aiming to solve the technical problem that switching APP icons in the iOS system can negatively impact user experience.
[0006] In a first aspect, embodiments of this application provide an icon switching method, comprising: in response to a switching operation of an APP icon in an iOS system, obtaining pop-up information of an icon switching prompt pop-up triggered by the switching operation; detecting whether the pop-up information contains specified identification information, wherein the specified identification information is used to reflect the source user to which the icon switching prompt pop-up belongs; if the pop-up information does not contain the specified identification information, replacing the second pop-up processing method for the icon switching prompt pop-up in the iOS system by invoking a preset first pop-up processing method through a method exchange, wherein the first pop-up processing method is to intercept the icon switching prompt pop-up when the switching operation is performed, and the second pop-up processing method is to pop up the icon switching prompt pop-up when the switching operation is performed.
[0007] Secondly, embodiments of this application provide an icon switching device, comprising: a pop-up information acquisition unit, configured to acquire pop-up information of an icon switching prompt pop-up triggered by a switching operation on an APP icon in an iOS system in response to such an operation; a designated identifier detection unit, configured to detect whether the pop-up information contains designated identifier information, wherein the designated identifier information reflects the source user to which the icon switching prompt pop-up belongs; and a pop-up logic replacement unit, configured to replace the second pop-up processing method for the icon switching prompt pop-up in the iOS system by calling a preset first pop-up processing method through a method exchange if the pop-up information does not contain the designated identifier information, wherein the first pop-up processing method is to intercept the icon switching prompt pop-up when the switching operation is performed, and the second pop-up processing method is to pop up the icon switching prompt pop-up when the switching operation is performed.
[0008] Thirdly, embodiments of this application provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform the method described in the first aspect above.
[0009] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing the method described in the first aspect above.
[0010] The beneficial effect of this application lies in addressing the technical problem of the negative impact of switching app icons in the iOS system on user experience, as described in related technologies. Firstly, in response to an app icon switching operation in the iOS system, the application obtains the pop-up information of the icon switching prompt window triggered by the switching operation. Specifically, in the iOS system, when an app icon is switched, an icon switching prompt pop-up is generally automatically triggered. Typically, the pop-up carries information describing its origin. The pop-up information of the icon switching prompt pop-up can reflect whether it originates from the iOS system itself or the developer, providing a basis for subsequent processing of the icon switching prompt pop-up.
[0011] Next, it checks whether the pop-up information contains specified identification information. This specified identification information identifies which source user set the icon switching prompt pop-up. In other words, if the icon switching prompt pop-up contains specified identification information reflecting its own source user, it means the pop-up was set by the developer. Conversely, if the pop-up information does not reflect the specified identification information of its own source user, it means the pop-up was not created by the developer but is a built-in feature of the iOS system.
[0012] Next, if the pop-up information of the icon switching prompt does not reflect the specified identifier information of its own source user, it indicates that the icon switching prompt is not created by the developer, but is a built-in feature of the iOS system. Every time an app icon is switched, the iOS system automatically generates an icon switching prompt to notify the user that the app icon has changed. This type of pop-up requires the user to manually close it. However, in real-world scenarios, users do not need this kind of prompt information. The appearance of this pop-up actually requires the user to manually close it, making it redundant and affecting the user's app experience.
[0013] Therefore, the second pop-up processing method, which directly pops up an icon switching prompt pop-up in the iOS system, can be replaced by a preset first pop-up processing method. The preset first pop-up processing method intercepts the icon switching prompt pop-up when the switching operation is performed, thus avoiding the need for the user to close the icon switching prompt pop-up and affecting the user's normal use, thereby improving the user experience.
[0014] Compared to related technologies that require users to manually close the icon switching prompt pop-up in the iOS system, the above technical solution can automatically block the icon switching prompt pop-up, reduce redundant operations for users, prevent the appearance of the icon switching prompt pop-up from affecting the user's experience of using the APP, and improve the user experience. [Attached Image Description]
[0015] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A flowchart of an icon switching method according to an embodiment of this application is shown;
[0017] Figure 2 A flowchart of an icon switching method according to another embodiment of this application is shown;
[0018] Figure 3 A flowchart illustrating the processing of user operations during icon switching according to an embodiment of this application is shown;
[0019] Figure 4 A block diagram of an icon switching device according to an embodiment of this application is shown;
[0020] Figure 5 A block diagram of an electronic device according to an embodiment of this application is shown.
Detailed Implementation Methods
[0021] The technical solution of this application addresses the technical problem in related technologies where switching app icons in the iOS system negatively impacts user experience. It replaces the original pop-up logic for icon switching prompts in the iOS system with logic that intercepts the pop-up, thereby achieving the goal of preventing the icon switching prompt pop-up from interfering with the user experience. To better understand the technical solution of this application, the embodiments are described in detail below with reference to the accompanying drawings.
[0022] Example 1
[0023] Figure 1 A flowchart of an icon switching method according to an embodiment of this application is shown.
[0024] like Figure 1 As shown, the flowchart of an icon switching method according to an embodiment of this application includes:
[0025] Step 102: In response to the switching operation of the APP icon in the iOS system, obtain the pop-up information of the icon switching prompt pop-up triggered by the switching operation.
[0026] In iOS, when an app icon changes, an icon change notification pop-up is usually triggered automatically. Typically, the pop-up carries information describing its origin. The pop-up information of the icon change notification pop-up can indicate whether it comes from the iOS system itself or the developer, providing a basis for subsequent handling of the icon change notification pop-up.
[0027] Step 104: Detect whether the pop-up information contains specified identification information, wherein the specified identification information is used to reflect the source user to which the icon switching prompt pop-up belongs.
[0028] Generally, pop-ups set by the source user typically include a title and message that identify the source user. System pop-ups, however, use the UIAlertViewController control and do not carry this type of information. In other words, the specified identification information identifies which source user set the icon switching prompt pop-up. Conversely, if the icon switching prompt pop-up has specified identification information reflecting its own source user, it indicates that the pop-up was set by the developer. If the pop-up information does not reflect the specified identification information of its own source user, it indicates that the icon switching prompt pop-up was not created by the developer but is a built-in feature of the iOS system.
[0029] Step 106: If the pop-up information does not contain the specified identifier information, the second pop-up processing method for the icon switching prompt pop-up in the iOS system is replaced by calling the preset first pop-up processing method through method exchange.
[0030] The first pop-up handling method is to intercept the icon switching prompt pop-up when the switching operation is performed, and the second pop-up handling method is to pop up the icon switching prompt pop-up when the switching operation is performed.
[0031] If the pop-up message for the icon switching notification does not reflect the specified identifier information of its source user, it indicates that the icon switching notification pop-up was not created by the developer but is a built-in feature of the iOS system. Every time an app icon is switched, the iOS system automatically generates an icon switching notification pop-up to inform the user that the app icon has changed. This pop-up requires the user to manually close it. However, in real-world scenarios, users do not need this notification information. The appearance of this pop-up actually requires the user to manually close it, making it redundant and negatively impacting the user experience.
[0032] Therefore, a method-swizzling approach can be used to replace the second pop-up window handling method in the iOS system, which directly displays an icon switching prompt. The preset first pop-up window handling method intercepts the icon switching prompt during the switching operation, preventing the pop-up from requiring the user to close it and thus improving the user experience. Method-swizzling essentially involves changing the implementation function of a method; its main function is to replace the implementation of one method with the implementation of another at runtime.
[0033] Compared to related technologies that require users to manually close the icon switching prompt pop-up in the iOS system, the above technical solution can automatically block the icon switching prompt pop-up, reduce redundant operations for users, prevent the appearance of the icon switching prompt pop-up from affecting the user's experience of using the APP, and improve the user experience.
[0034] In one possible design, step 104 specifically includes: detecting whether there is target identifier information in the preset identifier information list that matches the pop-up information, wherein if the target identifier information is in the preset identifier information list, the target identifier information is determined as the specified identifier information.
[0035] This allows you to store the identifiers of all developers who are source users in a preset identifier list. Whenever an app icon changes in the iOS system, the system can match the identifiers in this list. If a match is found, it means the pop-up is a valid prompt set by the developer, and not a redundant prompt automatically displayed by the system; in this case, the pop-up will appear. Conversely, if no match is found, it means the pop-up is not a valid prompt set by the developer, but a redundant prompt automatically displayed by the system; in this case, the pop-up will be blocked.
[0036] Specifically, the first pop-up handling method can be selected as generating a pop-up interception command, and in response to the pop-up interception command, blocking the pop-up of the icon switching prompt pop-up. That is, the first pop-up handling method can be to directly intercept the icon switching prompt pop-up, canceling its pop-up process, so as not to affect the user's normal use of the APP.
[0037] Example 2
[0038] Figure 2 A flowchart of an icon switching method according to another embodiment of this application is shown.
[0039] like Figure 2 As shown, the flowchart of the icon switching method according to another embodiment of this application includes:
[0040] Step 202: In response to the switching operation of the APP icon in the iOS system, obtain the pop-up information of the icon switching prompt pop-up triggered by the switching operation.
[0041] In iOS, when an app icon changes, an icon change notification pop-up is usually triggered automatically. Typically, the pop-up carries information describing its origin. The pop-up information of the icon change notification pop-up can indicate whether it comes from the iOS system itself or the developer, providing a basis for subsequent handling of the icon change notification pop-up.
[0042] Step 204: Detect whether the pop-up information contains specified identification information, wherein the specified identification information is used to reflect the source user to which the icon switching prompt pop-up belongs.
[0043] The specified identification information identifies which source user set the icon switching prompt pop-up. In other words, if the icon switching prompt pop-up has specified identification information reflecting its own source user, it means that the icon switching prompt pop-up is a pop-up set by the developer. If the pop-up information of the icon switching prompt pop-up does not reflect the specified identification information of its own source user, it means that the icon switching prompt pop-up is not created by the developer, but is a built-in feature of the iOS system.
[0044] Step 206: If the pop-up information does not contain the specified identifier information, the second pop-up processing method for the icon switching prompt pop-up in the iOS system is replaced by a preset first pop-up processing method through a method exchange. In this case, the first pop-up processing method is to hide the icon switching prompt pop-up when the switching operation is performed, and the second pop-up processing method is to pop up the icon switching prompt pop-up when the switching operation is performed.
[0045] Step 208: During the execution of the first pop-up processing method, in response to the invisibility pop-up of the icon switching prompt pop-up, a corresponding invisibility pop-up closing command is generated, causing the icon switching prompt pop-up to close in response to the invisibility pop-up closing command.
[0046] If the pop-up message for the icon switching notification does not reflect the specified identifier information of its source user, it indicates that the icon switching notification pop-up was not created by the developer but is a built-in feature of the iOS system. Every time an app icon is switched, the iOS system automatically generates an icon switching notification pop-up to inform the user that the app icon has changed. This pop-up requires the user to manually close it. However, in real-world scenarios, users do not need this notification information. The appearance of this pop-up actually requires the user to manually close it, making it redundant and negatively impacting the user experience.
[0047] Therefore, the second pop-up method, which directly pops up an icon switching prompt pop-up in the iOS system, can be replaced by a preset first pop-up processing method. When the switching operation is performed, the icon switching prompt pop-up pops up invisibly and then closes automatically, without requiring manual operation from the user. This avoids the forced pop-up of the icon switching prompt pop-up, which would require the user to close it and affect the user's normal use, thus improving the user experience.
[0048] Compared to related technologies that require users to manually close the icon switching prompt pop-up in the iOS system, the above technical solution can achieve invisible pop-up and automatic closure of the icon switching prompt pop-up, thereby indirectly achieving automatic interception of the icon switching prompt pop-up, reducing redundant operations for users, avoiding the appearance of the icon switching prompt pop-up from affecting the user's experience of using the APP, and improving the user experience.
[0049] Example 3
[0050] exist Figure 2 Based on the illustrated embodiment, if the icon switching prompt pop-up is hidden when the switching operation is performed, further processing is required if user operation occurs during the icon switching process to ensure that the user operation proceeds smoothly.
[0051] Specifically, such as Figure 3 As shown, the steps for handling user actions during icon switching include:
[0052] Step 302: During the time interval from when the icon switching prompt pop-up appears invisibly until it closes, respond to the user's operation and determine whether the user's operation is located within the invisible display area of the icon switching prompt pop-up. If the determination result is yes, proceed to step 304; otherwise, proceed to step 306.
[0053] Step 304: Determine the position of the operation location in the lower layer of the icon switching prompt pop-up as the target operation location, and execute the user operation applied to the target operation location.
[0054] Step 306: Perform the user operation.
[0055] During the time interval between the icon switching prompt pop-up disappearing and closing, the icon switching prompt pop-up is actually present on the operation interface. Although this time interval is very short, there is still a possibility of user operation. Once the user selects or touches the object under the icon switching prompt pop-up, since the icon switching prompt pop-up is actually present on the operation interface, the user is very likely to accidentally touch the icon switching prompt pop-up, affecting the user's operation.
[0056] To address this, during the time interval between the icon switching prompt pop-up appearing invisibly and closing, if a user action occurs, the location of the user action is detected. If the user action's location is within the invisible display area of the icon switching prompt pop-up, appropriate processing is performed to ensure the user action is valid. Specifically, the location corresponding to the action location in the lower layer of the icon switching prompt pop-up can be determined as the target action location, and the user action applied to the target action location is executed. Conversely, if the user action's location is not within the invisible display area of the icon switching prompt pop-up, it indicates that the user action's target location matches the user's intended location, and the user action can be executed directly.
[0057] The above technical solutions, while enabling the icon switching prompt pop-up to pop up invisibly and close automatically, fully consider the potential impact on user operations during the existence of the icon switching prompt pop-up. This helps improve the effectiveness of user operations during the existence of the icon switching prompt pop-up and avoids affecting the user experience due to the icon switching prompt pop-up.
[0058] exist Figures 1 to 3Based on the illustrated embodiment, customized processing of the intercept icon switching prompt pop-up can be performed for different apps or users.
[0059] In one possible design, in response to a switching operation of an APP icon in the iOS system, it is detected whether the APP is a specified APP or an associated APP with a preset association relationship with the specified APP. If the APP is the specified APP or the associated APP, the step of obtaining the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
[0060] The preset association refers to the calling or communication relationships between apps. For example, a financial app (app A) can be designated as a specific app, preventing users from being disturbed by system prompts when app A changes its icon. However, since financial app A requires investment or payment operations, which call a third-party payment app (app B), if third-party payment app B is launched for the first time after its icon update while financial app A is using it, the user will still see a system prompt on the third-party payment app B's interface. Therefore, third-party payment app B can be designated as a pre-set associated app with financial app A, thus avoiding interference from system prompts when users call third-party payment app B from financial app A.
[0061] The above technical solutions can provide customized services for designated apps, so that users are not disturbed by the system pop-up window of icon switching prompts when using the designated app and when using related apps that have a preset association with the designated app.
[0062] In another possible design, in response to a switching operation of an APP icon in the iOS system, it is determined whether the APP is a specified APP; when the APP is the specified APP, it is determined whether the login account of the APP is the specified account, wherein, if the login account of the APP is the specified account, the step of obtaining the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
[0063] Optionally, a set of specific accounts that need to be blocked can be set. When the APP is the specified APP, if the login account of the APP is a specified account in the specified account set, the blocking of the icon switching prompt pop-up in the APP can be started.
[0064] The above technical solutions can provide customized services for specific users or user groups of a specific APP, so that the specific users or user groups of the specific APP are not disturbed by system prompt pop-ups.
[0065] In another possible design, the step of obtaining the pop-up information of the icon switching prompt pop-up triggered by the switching operation in response to the switching operation of the APP icon in the iOS system includes: in response to the switching operation of the APP icon in the iOS system, detecting whether the user identity information or terminal identification information of the current terminal is in a predetermined information list, wherein if the user identity information or terminal identification information of the current terminal is in the predetermined information list, the step of obtaining the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
[0066] The above technical solutions can directly provide customized services for designated users or user groups, freeing designated users or user groups of a designated APP from system prompt pop-ups.
[0067] Figure 4 A block diagram of an icon switching device according to an embodiment of this application is shown.
[0068] like Figure 4 As shown, an icon switching device 400 according to an embodiment of this application includes: a pop-up information acquisition unit 402, configured to acquire pop-up information of an icon switching prompt pop-up triggered by a switching operation on an APP icon in an iOS system in response to such an operation; a designated identifier detection unit 404, configured to detect whether the pop-up information contains designated identifier information, wherein the designated identifier information reflects the source user to which the icon switching prompt pop-up belongs; and a pop-up logic replacement unit 406, configured to replace the second pop-up processing method for the icon switching prompt pop-up in the iOS system by calling a preset first pop-up processing method through a method exchange if the pop-up information does not contain the designated identifier information, wherein the first pop-up processing method is to intercept the icon switching prompt pop-up when the switching operation is performed, and the second pop-up processing method is to pop up the icon switching prompt pop-up when the switching operation is performed.
[0069] In one embodiment of this application, optionally, the pop-up logic replacement unit 406 is configured to: generate a pop-up interception instruction, and in response to the pop-up interception instruction, block the pop-up of the icon switching prompt pop-up; or pop up the icon switching prompt pop-up invisibly, and in response to the invisible pop-up of the icon switching prompt pop-up, generate a corresponding invisible pop-up closing instruction, so that the icon switching prompt pop-up closes in response to the invisible pop-up closing instruction.
[0070] In one embodiment of this application, optionally, the pop-up logic replacement unit 406 is further configured to: when the icon switching prompt pop-up is displayed invisibly, during the time interval from when the icon switching prompt pop-up is displayed invisibly to when it is closed, in response to a user operation, determine whether the operation position of the user operation is located within the invisible display area of the icon switching prompt pop-up; when the determination result is yes, determine the position corresponding to the operation position in the lower layer of the icon switching prompt pop-up as the target operation position, and execute the user operation acting on the target operation position; when the determination result is no, execute the user operation.
[0071] In one embodiment of this application, optionally, the pop-up information acquisition unit 402 is used to: in response to a switching operation of an APP icon in the iOS system, detect whether the APP is a specified APP or an associated APP with a preset association relationship with the specified APP, wherein if the APP is the specified APP or the associated APP, the step of acquiring the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
[0072] In one embodiment of this application, optionally, the pop-up information acquisition unit 402 is configured to: in response to a switching operation of an APP icon in the iOS system, determine whether the APP is a designated APP; when the APP is the designated APP, determine whether the login account of the APP is a designated account, wherein if the login account of the APP is the designated account, the step of acquiring the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
[0073] Optionally, in one embodiment of this application, the pop-up information acquisition unit 402 is configured to: in response to a switching operation of an APP icon in an iOS system, detect whether the user identity information or terminal identification information of the current terminal is in a predetermined information list, wherein if the user identity information or terminal identification information of the current terminal is in the predetermined information list, the step of acquiring the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
[0074] Optionally, in one embodiment of this application, the designated identifier detection unit 404 is configured to: detect whether there is target identifier information matching the pop-up information in the preset identifier information list, wherein if the target identifier information is in the preset identifier information list, the target identifier information is determined as the designated identifier information.
[0075] The icon switching device 400 uses the solution described in any of the above embodiments, and therefore has all the above-mentioned technical effects, which will not be repeated here.
[0076] Figure 5 A block diagram of an electronic device according to an embodiment of this application is shown.
[0077] like Figure 5 As shown, an electronic device 500 according to one embodiment of this application includes at least one memory 502; and a processor 504 communicatively connected to the at least one memory 502; wherein the memory stores instructions executable by the at least one processor 504, the instructions being configured to execute the scheme described in any of the above embodiments. Therefore, this electronic device 500 has the same technical effects as any of the above embodiments, and will not be repeated here.
[0078] The electronic devices in this application embodiments exist in various forms, including but not limited to:
[0079] (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include: smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones, etc.
[0080] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include PDAs, MIDs, and UMPCs, such as the iPad.
[0081] (3) Portable entertainment devices: These devices can display and play multimedia content. This category includes: audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0082] (4) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0083] (5) Other electronic devices with data interaction functions.
[0084] In addition, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which are used to perform the following steps: in response to a switching operation of an APP icon in an iOS system, obtaining pop-up information of an icon switching prompt pop-up triggered by the switching operation; detecting whether the pop-up information contains specified identification information, wherein the specified identification information is used to reflect the source user to which the icon switching prompt pop-up belongs; if the pop-up information does not contain the specified identification information, replacing the second pop-up processing method for the icon switching prompt pop-up in the iOS system with a preset first pop-up processing method through a method exchange, wherein the first pop-up processing method is to intercept the icon switching prompt pop-up when the switching operation is performed, and the second pop-up processing method is to pop up the icon switching prompt pop-up when the switching operation is performed.
[0085] It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or electronic device described above can be referred to the relevant descriptions in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.
[0086] The technical solution of this application has been described in detail above with reference to the accompanying drawings. Through the technical solution of this application, the icon switching prompt pop-up can be automatically blocked, reducing redundant operations for users, avoiding the appearance of icon switching prompt pop-up from affecting the user's experience of using the APP, and improving the user experience.
[0087] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0088] It should be understood that although the terms "first," "second," etc., may be used to describe pop-up window handling methods in the embodiments of this application, these pop-up window handling methods should not be limited to these terms. These terms are only used to distinguish pop-up window handling methods from one another. For example, without departing from the scope of the embodiments of this application, the first pop-up window handling method may also be referred to as the second pop-up window handling method, and similarly, the second pop-up window handling method may also be referred to as the first pop-up window handling method.
[0089] Depending on the context, the word "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0090] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0091] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.
[0092] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. 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 various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0093] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. An icon switching method, characterized in that, include: In response to a switching operation on an app icon in the iOS system, obtain the pop-up information of the icon switching prompt pop-up triggered by the switching operation; Detect whether the pop-up information contains specified identification information, wherein the specified identification information is used to reflect the source user to which the icon switching prompt pop-up belongs. If the pop-up information contains the specified identification information reflecting the source user to which the icon switching prompt pop-up belongs, determine that the icon switching prompt pop-up is a pop-up set by the developer. If the pop-up information of the icon switching prompt does not contain the specified identifier information reflecting the source user to which the icon switching prompt pop-up belongs, it is determined that the icon switching prompt pop-up is a built-in feature of the iOS system. The second pop-up processing method for the icon switching prompt pop-up in the iOS system is replaced by a preset first pop-up processing method through a method exchange. The first pop-up processing method is to pop up the icon switching prompt pop-up invisibly, and in response to the invisible pop-up of the icon switching prompt pop-up, generate a corresponding invisible pop-up closing command, so that the icon switching prompt pop-up closes in response to the invisible pop-up closing command. The second pop-up processing method is to pop up the icon switching prompt pop-up when the switching operation is performed. The icon switching prompt pop-up actually exists in the operation interface. The first pop-up processing method is as follows: during the time interval from when the icon switching prompt pop-up pops up invisibly until it closes, in response to the user operation, it is determined whether the operation position of the user operation is located within the invisible display area of the icon switching prompt pop-up; when the determination result is yes, the position corresponding to the operation position in the lower layer of the icon switching prompt pop-up is determined as the target operation position, and the user operation acting on the target operation position is executed; when the determination result is no, the user operation is executed.
2. The icon switching method according to claim 1, characterized in that, The step of responding to a switching operation on an app icon in the iOS system, and obtaining pop-up information of the icon switching prompt triggered by the switching operation, includes: In response to a switching operation of the APP icon in the iOS system, it detects whether the APP is a specified APP or an associated APP with a preset association relationship with the specified APP. If the APP is the designated APP or the associated APP, the step of obtaining the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
3. The icon switching method according to claim 1, characterized in that, The step of responding to a switching operation on an app icon in the iOS system, and obtaining pop-up information of the icon switching prompt triggered by the switching operation, includes: In response to a switching operation of the APP icon in the iOS system, determine whether the APP is the specified APP; When the APP is the designated APP, determine whether the login account of the APP is the designated account. If the login account of the APP is the specified account, then the step of obtaining the pop-up information of the icon switching prompt pop-up triggered by the switching operation is allowed.
4. The icon switching method according to claim 1, characterized in that, The step of responding to a switching operation on an app icon in the iOS system, and obtaining pop-up information of the icon switching prompt triggered by the switching operation, includes: In response to the app icon switching operation in the iOS system, it checks whether the user's identity information or the device's identification information is in a predetermined information list. If the user identity information or terminal identification information of the current terminal is in the predetermined information list, the user is allowed to proceed to the step of obtaining the pop-up information of the icon switching prompt pop-up triggered by the switching operation.
5. The icon switching method according to claim 1, characterized in that, The detection of whether the pop-up information contains specified identifier information includes: The system detects whether there is a target identifier in the preset identifier information list that matches the pop-up information. If the target identifier information is in the preset identifier information list, the target identifier information is determined as the specified identifier information.
6. An icon switching device, characterized in that, include: The pop-up information acquisition unit is used to acquire pop-up information of the icon switching prompt pop-up triggered by the switching operation in response to the switching operation of the APP icon in the iOS system. A designated identifier detection unit is used to detect whether the pop-up information contains designated identifier information, wherein the designated identifier information is used to reflect the source user to which the icon switching prompt pop-up belongs; A pop-up logic replacement unit is used to replace the second pop-up processing method for the icon switching prompt pop-up in the iOS system by calling a preset first pop-up processing method through a method exchange if the pop-up information does not contain the specified identifier information. The first pop-up processing method is to pop up the icon switching prompt pop-up invisibly and generate a corresponding invisible pop-up closing command in response to the invisible pop-up of the icon switching prompt pop-up, so that the icon switching prompt pop-up closes in response to the invisible pop-up closing command. The second pop-up processing method is to pop up the icon switching prompt pop-up when the switching operation is performed. The icon switching prompt pop-up actually exists in the operation interface. The pop-up logic replacement unit is further configured to: during the time interval from when the icon switching prompt pop-up appears invisibly until it closes, respond to user operation and determine whether the operation position of the user operation is located within the invisible display area of the icon switching prompt pop-up; when the determination result is yes, determine the position corresponding to the operation position in the lower layer of the icon switching prompt pop-up as the target operation position and execute the user operation acting on the target operation position; when the determination result is no, execute the user operation.
7. An electronic device, characterized in that, include: At least one processor; And, a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, the instructions being configured to perform the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The device stores computer-executable instructions for performing the method as described in any one of claims 1 to 5.