Interface amplification display method, device and equipment based on iOS platform
By using the interface magnification method on the iOS platform, the interface content needed by elderly users can be dynamically magnified in certain areas, which solves the problem of insufficient flexibility in existing technologies. This enables real-time and flexible magnification display, improving user experience and the age-friendly interface.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-18
- Publication Date
- 2026-04-17
AI Technical Summary
Existing interface zoom solutions are insufficient in terms of flexibility and immediacy, failing to meet the needs of elderly users for partial zoom viewing, and often causing interface layout reconstruction or cross-application inconsistency issues.
This paper provides a method for zooming in on an iOS platform. The method presents a zoomed-in display area on the current application interface in response to user-triggered operations, acquires image data in real time and dynamically zooms in on the content of the area to be zoomed in, supports touch movement operations to update the display, and hides the zoomed-in area when the operation is closed. The zoomed-in display is achieved by using a circular floating layer or a fixed area.
It enables flexible and instant zooming of local content on the interface, improves the continuity of operation and the smoothness of user experience, avoids layout disorder and element overlap, adapts to different user interaction habits, and enhances the readability and age-friendliness of the interface.
Smart Images

Figure CN121879650A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile terminal technology, and in particular to a method, apparatus, and device for enlarging and displaying an interface based on the iOS platform. Background Technology
[0002] With the popularization of mobile internet technology and the widespread application of smart terminal devices, mobile terminals have become the core entry point for people to obtain information, engage in social interaction, and manage smart devices. At the same time, the social population structure is showing an aging trend, and the demand for smartphones and their applications from the large elderly population is growing, becoming an important part of their daily lives. However, elderly users face significant difficulties when using mobile applications with complex interfaces and small font sizes due to declining visual function (such as presbyopia and blurred vision) and cognitive decline. This is especially true in information-dense applications, such as smart home management apps, which typically integrate numerous device status indicators, function buttons, and menu lists. The default font and icon sizes are poorly readable for elderly users, becoming a key factor hindering their smooth use of digital services.
[0003] To address this, the industry has implemented various display enhancement technologies to improve interface readability. These include enabling operating system-level global display scaling or font magnification, which enlarges text and controls in some applications within the system, improving overall readability. Another application-level solution is to develop independent "age-friendly modes" or "senior modes," simplifying interface layout and enlarging key controls to lower the operational threshold. While these solutions alleviate visual barriers to some extent, global adjustments often involve restructuring the interface layout, and mode switching relies on user activation and lacks cross-application consistency, limiting their flexibility and immediacy. Summary of the Invention
[0004] In view of this, the purpose of this invention is to propose a method, apparatus and device for zooming in on the interface based on the iOS platform, which aims to solve the problems of insufficient flexibility of existing interface zooming solutions and inability to meet users' needs for real-time and local zooming in.
[0005] To achieve the above objectives, the present invention provides a method for zooming in on an interface based on the iOS platform, the method comprising: In response to a user's preset trigger operation on the current application interface, an enlarged display area is presented on the current application interface, and real-time image data of the current application interface is acquired. Based on the interface position corresponding to the preset trigger operation, the area to be magnified is determined from the real-time image data, the content within the area to be magnified is dynamically magnified locally, and displayed in the magnified display area; The system detects user touch movements on the current application interface and updates the content displayed in the magnified display area based on the interface position change corresponding to the touch movement. In response to the closing operation of the magnified display area, the magnified display area is removed or hidden.
[0006] Preferably, the preset trigger operation includes a long press gesture on the current application interface, or a click operation on a preset magnification function control in the current application interface.
[0007] Preferably, the magnified display area is a circular overlay superimposed on the current application interface, the circular overlay having blurred edges, highlight outlines, and a semi-transparent liquid glass visual effect; or the magnified display area is a preset fixed area in the current application interface; the step of dynamically and locally magnifying the content within the area to be magnified and displaying it in the magnified display area includes: A rectangular image corresponding to the area to be magnified is cropped from the real-time image data, and the rectangular image is magnified by a preset magnification to obtain an magnified image; The magnified image is drawn within the circular overlay, and the magnified image is masked by the circular boundary of the circular overlay, so that the content displayed within the circular overlay is circular; or, the magnified image is displayed within the fixed area.
[0008] Preferably, the step of detecting user touch movement operations on the current application interface and updating the magnified content within the magnified display area based on the interface position change corresponding to the touch movement operation includes: The touch movement operation is a single-finger drag operation on the circular overlay, which moves the position of the circular overlay on the current application interface; based on the interface position corresponding to the center point of the circular overlay after movement, the enlarged display content in the circular overlay is updated; or... The touch movement operation is a single-finger swipe operation on the current application interface. Based on the current position of the single-finger swipe operation on the current application interface, the interface content corresponding to the current position is enlarged and displayed in the fixed area.
[0009] Preferably, the step of detecting user touch movement operations on the current application interface and updating the magnified content within the magnified display area based on the interface position change corresponding to the touch movement operation includes: Calculate the target sampling coordinates based on the touch movement operation, and determine whether the target sampling coordinates exceed the valid data boundary of the real-time image data; If the target sampling coordinates are exceeded, the target sampling coordinates will be restricted to the nearest valid data boundary. Based on the constrained coordinates, the area to be magnified is redefined from the real-time image data, and the content of the redefined area to be magnified is magnified and displayed in the magnified display area.
[0010] Preferably, during the activation of the magnified display area, the user's touch movement event is intercepted and determined; when the touch movement event is determined to be for controlling the magnified display area, the touch movement event is assigned to the magnified display area for processing, so as to move the magnified display area or update the magnified content displayed in the magnified display area; otherwise, the touch movement event is ignored or the processing is delayed.
[0011] Preferably, acquiring the real-time image data of the current application interface includes: The latest rendered frame data of the view controller's corresponding view layer is dynamically obtained from the system rendering pipeline and used as the real-time image data.
[0012] Preferably, the current application interface includes a device control interface for a smart home application or a status display interface for a smart home application.
[0013] To achieve the above objectives, the present invention also provides an interface magnification display device based on the iOS platform, the device comprising: The triggering unit is used to respond to a user's preset triggering operation on the current application interface, present an enlarged display area on the current application interface, and acquire real-time image data of the current application interface. The magnification unit is used to determine the area to be magnified from the real-time image data based on the interface position corresponding to the preset trigger operation, dynamically magnify the content within the area to be magnified, and display it in the magnified display area. The display update unit is used to detect the user's touch movement operation on the current application interface, and update the content displayed in the magnified display area according to the interface position change corresponding to the touch movement operation. The shutdown control unit is used to remove or hide the magnified display area in response to a shutdown operation of the magnified display area.
[0014] To achieve the above objectives, the present invention also proposes an interface magnification display device based on the iOS platform, including a processor, a memory, and a computer program stored in the memory. The computer program is executed by the processor to implement the steps of the interface magnification display method based on the iOS platform as described in the above embodiments.
[0015] To achieve the above objectives, the present invention also proposes a computer-readable storage medium storing a computer program that is executed by a processor to implement the steps of an interface magnification display method based on the iOS platform as described in the above embodiments.
[0016] To achieve the above objectives, the present invention also proposes a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of an interface magnification display method based on the iOS platform as described in the above embodiments.
[0017] Beneficial effects: The above solution, through a closed-loop process of triggering operations, real-time image processing, dynamic zooming, and touch tracking, enables on-demand zooming of specific content on the interface, thereby improving the flexibility of interface zooming. Users can instantly activate the zoomed-in view at any position on the interface without switching application modes or adjusting system settings. Furthermore, the zooming process is completely independent of the underlying interface layout, achieving dynamic zooming of any specific content without modifying or disrupting any existing application interface layout or style. This avoids common layout errors or element overlap issues in existing solutions. Simultaneously, because the zoomed-in display area updates its content in real time as the touch moves, users can seamlessly browse zoomed-in details in different areas, greatly improving operational continuity and user experience smoothness.
[0018] By further defining the triggering methods, including long-press gestures and clicks on function controls, the intuitiveness and flexibility of the interaction are enhanced. The long-press gesture trigger aligns with users' natural interactive intuition, allowing for quick activation of the zoom function without needing to find a specific button; it offers the shortest operation path and the most immediate response. Meanwhile, clicking on function controls provides users with a stable and visible entry point, reducing the learning curve. These two methods complement each other, lowering the barrier to entry for the function, adapting to the usage habits and cognitive preferences of different user groups, and improving universality and user-friendliness.
[0019] The user defined two specific implementation forms for the magnified display area: a circular overlay or a fixed area. The circular overlay features a unique visual design, using a simulated optical magnifying glass appearance to provide stronger visual guidance and immersion. Its circular border, blurred edges, highlight outline, and semi-transparent "liquid glass" visual effect allow the magnifying glass tool to blend seamlessly into the interface, reducing any harshness and enhancing aesthetics and texture. Furthermore, the interaction of dragging the overlay with a single finger allows for intuitive and synchronized movement of the viewing position and the magnified area, aligning with the physical metaphor of direct control and improving the smoothness and naturalness of the user experience. The fixed area maintains absolute stability in the interface layout. As an integral part of the interface, it does not move with user actions, avoiding visual interference that floating elements might cause. Its content is updated by swiping with a single finger on the interface, separating focused browsing from magnified viewing, preventing eye fatigue from frequent switching between different positions on the interface, and is suitable for use cases where the magnified window's position needs to be constant.
[0020] By defining the boundary constraints on the target sampling coordinates when updating the magnified content, the robustness of the interaction and the integrity of the user experience are enhanced. Even when the user drags or operates to the edge of the interface quickly, the magnified display can smoothly transition and always present valid content, avoiding display blanks or anomalies caused by coordinate out-of-bounds errors. This ensures that meaningful magnified content consistent with the interface logic is always presented within the magnified display area throughout the entire interaction process, allowing dragging or sliding operations to continue uninterrupted, thus improving the reliability and stability of the function.
[0021] By optimizing the event handling logic during zoom-in display and allocating processing priorities by intercepting and judging touch event types, accidental touch protection is achieved during the use of the function. By isolating touch events controlling the zoom-in area from other interface operation events, it effectively prevents users from accidentally triggering underlying buttons or links when moving or viewing zoomed-in content, ensuring that the zoom-in function does not interfere with the interaction with the native application, and significantly improving usability in complex interactive environments.
[0022] The system dynamically acquires the latest rendering frame data from the rendering pipeline as the image source, ensuring extremely high timeliness and realism of the magnified content. Based on dynamically updated rendering frames rather than static screenshots, the magnified display can respond instantly to any changes in the interface content (such as data refresh or interface scrolling), ensuring strict synchronization between the magnified view and the current actual interface state, and providing users with real and reliable magnified information.
[0023] By specifying the application scenario as the device control or status display interface of smart home applications, the practical value of the solution in specific scenarios is highlighted. Smart home interfaces are information-intensive and have many controls, which are crucial for elderly users. In this scenario, the application can directly and effectively solve the practical difficulties that elderly users face when checking device status, reading health data, and operating small controls, thereby improving the age-friendliness of smart home applications and user satisfaction, and reflecting the social value of the technology. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a flowchart illustrating a method for enlarging and displaying an interface based on the iOS platform, as provided in an embodiment of the present invention.
[0026] Figure 2 This is a schematic diagram of the structure of an interface magnification display device based on the iOS platform, provided as an embodiment of the present invention.
[0027] The realization of the invention's objective, its functional characteristics, and advantages will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to represent selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0029] The present invention will be described in detail below with reference to the embodiments.
[0030] Reference Figure 1 The diagram shown is a flowchart of an interface magnification display method based on the iOS platform provided by an embodiment of the present invention.
[0031] In this embodiment, the method includes: S11, in response to a user's preset trigger operation on the current application interface, a magnified display area is presented on the current application interface, and real-time image data of the current application interface is acquired.
[0032] Furthermore, the preset trigger operation includes a long press gesture on the current application interface, or a click operation on a preset magnification function control in the current application interface.
[0033] Furthermore, acquiring the real-time image data of the current application interface includes: The latest rendered frame data of the view controller's corresponding view layer is dynamically obtained from the system rendering pipeline and used as the real-time image data.
[0034] Furthermore, the current application interface includes the device control interface of the smart home application or the status display interface of the smart home application.
[0035] The long press gesture on the current application interface is detected by the UILongPressGestureRecognizer gesture recognizer.
[0036] In this embodiment, when a user operates an iOS-based smart home application, if they find certain text, icons, or device status information unclear while browsing the device control interface or viewing the home environment status display, they can activate the magnification assistance function through specific operations (such as a long press gesture or clicking a function button). The long press gesture involves the user pressing their finger on the screen for an extended period near the area requiring magnification. The application detects this action using the UILongPressGestureRecognizer gesture recognizer provided by the iOS system. The minimum duration of this gesture is configurable to suit the operating habits of elderly users. Clicking a function button provides a persistent or readily accessible, clearly marked magnifying glass icon on the application interface. Clicking this button indicates the user's intention to activate the magnification function.
[0037] The following explanation uses a long-press gesture as an example. When a user's long-press gesture is detected, the system presents a pre-created and visually configured magnifying glass on the screen. This magnifying glass is a floating view with a circular border, blurred edges, highlight outlines, and a semi-transparent liquid glass visual effect. It is initialized but hidden before the gesture is detected, and is made visible and placed in the current application interface when enabled. After the magnifying glass appears, the system first dynamically retrieves the latest rendering frame of the view layer corresponding to the current view controller from the iOS rendering pipeline, using this as a real-time, dynamic image source. Then, centered on the touch point coordinates of the long-press gesture, a rectangular area to be magnified is determined from this real-time image data, and the GPU accelerates the cropping and magnification calculations of this area in a background thread. Finally, the magnified image is drawn into the circular floating layer and clipped using the floating layer's own circular border, thus forming a circular window displaying clearly magnified content near the touch point. At this point, the user can see the magnified content of the interface elements at the fingertip location. However, throughout the entire process, the layout, state, and functionality of the underlying application interface remain unchanged or unaffected.
[0038] S12, based on the interface position corresponding to the preset trigger operation, determine the area to be magnified from the real-time image data, dynamically magnify the content within the area to be magnified, and display it in the magnified display area.
[0039] Furthermore, the magnified display area is a circular overlay superimposed on the current application interface, and the circular overlay has blurred edges, highlight outlines, and a semi-transparent liquid glass visual effect; or the magnified display area is a preset fixed area in the current application interface.
[0040] The edge blurring of the circular overlay is achieved through UIVisualEffectView.
[0041] In step S12, dynamically and locally magnifying the content within the area to be magnified and displaying it in the magnified display area includes: S12-1, A rectangular image corresponding to the area to be magnified is cropped from the real-time image data, and the rectangular image is magnified by a preset magnification to obtain an magnified image; S12-2, the magnified image is drawn within the circular overlay, and the magnified image is masked by the circular boundary of the circular overlay, so that the content displayed within the circular overlay is circular; or, the magnified image is displayed within the fixed area.
[0042] When the magnified image is drawn within the circular overlay, anti-aliasing is applied to the edges of the text and icons.
[0043] The step of dynamically and locally magnifying the content within the area to be magnified includes: The image cropping and scaling calculations for the area to be magnified are performed in a background thread, and hardware-accelerated rendering is performed using the graphics processing unit.
[0044] In this embodiment, the precise interface position coordinates corresponding to the long-press gesture are analyzed. Using these coordinates as the center, a rectangular area to be magnified is intelligently defined from the acquired dynamic rendering frame data. The size of this area matches the preset magnified display area window, ensuring accurate capture of the source image content. Then, an efficient image processing pipeline is executed in the background: an image block corresponding to the rectangular area to be magnified is cropped from the real-time image data; utilizing the hardware acceleration capability of the graphics processing unit (GPU), the image block is scaled with high quality according to the user-defined or system default magnification (e.g., 2x), generating a high-resolution magnified image. This process specifically optimizes the edges of text and icons, performing anti-aliasing processing to ensure that the magnified content remains clear and sharp, making it easy for elderly users to recognize.
[0045] If the magnified display area is a circular overlay, the system renders the magnified image inside the already rendered circular overlay with a liquid glass visual effect. Using the boundary of this circular overlay as a mask, the rectangular magnified image is cropped, ensuring that only the image content within the circular area is displayed, thus ultimately forming a visually complete, circular magnified view within the circular overlay. If the magnified display area is a preset fixed area, the system directly renders the magnified image data and fills it into the fixed display area reserved in the interface layout, completing the content update. The location where the user long-presses is converted into clearly magnified visual information on the screen in real time, and the content and quality of this magnified view directly originate from the latest dynamic rendering frame of the application interface, achieving true dynamic, localized, and high-fidelity magnified display without causing any persistent modifications or interference to the original layout, control states, and interaction logic of the underlying smart home application interface.
[0046] S13, detect the user's touch movement operation on the current application interface, and update the content displayed in the magnified display area according to the interface position change corresponding to the touch movement operation.
[0047] Furthermore, in step S13, detecting the user's touch movement operation on the current application interface and updating the magnified content within the magnified display area based on the interface position change corresponding to the touch movement operation includes: The touch movement operation is a single-finger drag operation on the circular overlay, which moves the position of the circular overlay on the current application interface; based on the interface position corresponding to the center point of the circular overlay after movement, the enlarged display content in the circular overlay is updated; or... The touch movement operation is a single-finger swipe operation on the current application interface. Based on the current position of the single-finger swipe operation on the current application interface, the interface content corresponding to the current position is enlarged and displayed in the fixed area.
[0048] In this embodiment, users dynamically explore and view different areas of the application interface through touch-based movement. Specifically: when the magnified display area is a circular overlay, the user presses and drags the circular magnifying glass overlay itself on the screen with a single finger. The system monitors this dragging operation in real time and updates the position coordinates of the circular overlay on the screen synchronously. Whenever the position of the circular overlay changes, the interface coordinates corresponding to the geometric center point of the moved circular overlay are immediately used as the new sampling center, and a new area to be magnified is determined from the dynamic image source (i.e., the latest rendered frame) established in step S11. Subsequently, the system quickly performs cropping, magnification, and masking compositing (as in step S12 above), refreshing and displaying the content of the new area within the circular overlay. This process runs at a high frequency, allowing the image within the magnifying glass to update smoothly with the finger movement without delay, achieving a "point and see" magnification effect. When the magnified display area is a preset fixed area, the magnified window is fixed at a certain point on the interface (such as the top of the screen), and the user moves the "focus of observation" by directly sliding a single finger on the underlying application interface. By tracking the current position of the finger swipe in real time and mapping that position to the focus area to be magnified, the system determines the area to be magnified from real-time image data, centers on that position, and after rapid processing, updates and displays the magnified image within a fixed window area. In this mode, the user's touch operation and the display position of the magnified area are spatially separate but logically closely related, achieving a browsing experience of "swiping the interface and synchronously magnifying the fixed window."
[0049] Furthermore, in step S13, detecting the user's touch movement operation on the current application interface and updating the magnified content within the magnified display area based on the interface position change corresponding to the touch movement operation includes: S13-1, Calculate the target sampling coordinates based on the touch movement operation, and determine whether the target sampling coordinates exceed the valid data boundary of the real-time image data; S13-2, If the target sampling coordinates are exceeded, then the target sampling coordinates are restricted to the effective data boundary closest to the target sampling coordinates; S13-3, Based on the constrained coordinates, redetermine the area to be magnified from the real-time image data, and magnify and display the content of the newly determined area to be magnified in the magnified display area.
[0050] S14, in response to the operation of closing the magnified display area, remove or hide the magnified display area.
[0051] In this embodiment, when a user performs a touch movement operation (whether dragging a circular overlay or swiping on the application interface), a target sampling coordinate is calculated based on the real-time screen position corresponding to the operation. This coordinate is intended to be mapped onto the real-time image data acquired in step S11, serving as the center point for a new round of content sampling. To ensure the robustness of the interaction and the effectiveness of the displayed content, the system incorporates an intelligent boundary protection mechanism to determine whether the target sampling coordinate exceeds the effective data boundary of the real-time image data (i.e., the actual sampleable area of the current interface content). If the calculated coordinate point is within the effective boundary, it is directly used as the center for subsequent processing; if it is determined that the coordinate exceeds the effective boundary, the system will not perform out-of-bounds sampling, but will automatically limit the coordinate to the effective data boundary point closest to the original target point. This prevents image sampling errors, blank displays, or application anomalies that may occur due to out-of-bounds coordinates, ensuring that the magnifying glass can display correct and continuous magnified content at any position on the interface, including edges and corners. Based on the constrained coordinates, a new area to be magnified is determined from the real-time image data source, centered on these coordinates. The content of the newly determined area to be magnified is then magnified and displayed in the magnified display area.
[0052] By listening for closing actions on the magnified display area, such as when the user actively ends a long press (lifts their finger), taps the preset close button on the magnifier overlay, or performs a specific close gesture (like double-tapping the overlay), the closing process is initiated once a valid close command is detected: the magnified display area view overlaid on the interface is removed or hidden, completely clearing it from the visual and view hierarchy; the application exits the interactive state specifically set up for the magnifier, restoring the normal response chain of all touch events, and all buttons and controls in the underlying application interface will be able to receive and process user touch events again. The entire closing transition is smooth and instantaneous; the enabling and disabling of the magnifier has no lasting impact on the application's original interface layout, functional state, or subsequent operations, truly achieving temporary and non-intrusive accessibility features.
[0053] Furthermore, during the activation of the magnified display area, the user's touch movement event is intercepted and determined; when the touch movement event is determined to be for controlling the magnified display area, the touch movement event is assigned to the magnified display area for processing, so as to move the magnified display area or update the magnified content displayed in the magnified display area; otherwise, the touch movement event is ignored or the processing is delayed.
[0054] The step of ignoring or delaying the processing of the touch movement event includes: If the magnified display area is still enabled after delaying the touch movement event by a preset time threshold, the touch movement event is discarded; otherwise, the touch movement event is passed to the underlying control of the current application interface for processing.
[0055] In this embodiment, single-finger touch and drag events are intercepted by the view hierarchy of the magnified display area (circular overlay or fixed area). Specifically, when a user's finger touches and moves on the screen, whether it's directly pressing and dragging on the circular overlay or swiping on the underlying interface to update the content of the fixed area, these continuous touch and movement events are captured and consumed by the magnifying glass view to realize the movement of the magnifying glass itself or the updating of its displayed content. For touch events occurring outside the magnified display area, they are processed according to a preset strategy, including ignoring them directly to prevent any potential accidental triggering; or briefly delaying their processing until the magnifying glass state exits before evaluating them. This event distribution mechanism ensures that during magnifying glass activation, the user's dragging or content viewing operations on the magnifying glass will not accidentally trigger buttons, sliders, or other functional controls in the underlying application interface. The entire process is smoothly coordinated by a state machine, making the interaction of the magnifying glass "undisturbed" to the original application interface. When the user ends the operation (such as releasing the finger or triggering the close button), the state machine switches back to the normal state, removes the magnifying glass view, and restores the normal transmission of all touch events to the original interface controls, while the underlying interface layout and functions remain completely unchanged.
[0056] Reference Figure 2 The diagram shown is a structural schematic of an interface magnification display device based on the iOS platform according to an embodiment of the present invention.
[0057] In this embodiment, the device 20 includes: Triggering unit 21 is used to respond to a user's preset trigger operation on the current application interface, present an enlarged display area on the current application interface, and acquire real-time image data of the current application interface. The magnification unit 22 is used to determine the area to be magnified from the real-time image data based on the interface position corresponding to the preset trigger operation, dynamically magnify the content in the area to be magnified locally, and display it in the magnified display area. The display update unit 23 is used to detect the user's touch movement operation on the current application interface, and update the content displayed in the magnified display area according to the interface position change corresponding to the touch movement operation. The shutdown control unit 24 is used to remove or hide the magnified display area in response to a shutdown operation of the magnified display area.
[0058] Each unit module of the device 20 can execute the corresponding steps in the above method embodiment, so the details of each unit module will not be elaborated here. Please refer to the description of the corresponding steps above for details.
[0059] This invention also provides an interface magnification display device based on the iOS platform. The device includes the interface magnification display apparatus described above, wherein the interface magnification display apparatus based on the iOS platform can employ… Figure 2 The structure of the embodiment, correspondingly, can be executed Figure 1 The technical solutions of the method embodiments shown are similar in implementation principle and technical effect. For details, please refer to the relevant records in the above embodiments, which will not be repeated here.
[0060] The device includes: a mobile phone, digital camera, or tablet computer, or other device with a camera function; or a device with an image processing function; or a device with an image display function. The device may include components such as a memory, processor, input unit, display unit, and power supply.
[0061] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, applications required for at least one function, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include high-speed random access memory, and can also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide access to the memory for the processor and input units.
[0062] The input unit can be used to receive input numerical, character, or image information, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, in addition to a camera, the input unit of this embodiment may also include a touch-sensitive surface (e.g., a touch screen) and other input devices.
[0063] The display unit can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. The display unit may include a display panel, optionally configured as an LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other similar display panel. Furthermore, a touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it transmits the information to the processor to determine the type of touch event. Subsequently, the processor provides corresponding visual output on the display panel based on the type of touch event.
[0064] This invention also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the memory described in the above embodiments; or it may be a standalone computer-readable storage medium not assembled into a device. The computer-readable storage medium stores at least one instruction, which is loaded and executed by a processor to implement... Figure 1 The illustrated method for zooming in on an iOS platform interface. The computer-readable storage medium may be a read-only memory, a disk, or an optical disk, etc.
[0065] This invention also provides a computer program product, including a computer program / instructions, which are loaded and executed by a processor to implement... Figure 1 This illustrates a method for enlarging and displaying an interface based on the iOS platform.
[0066] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the device embodiments, equipment embodiments, and storage medium embodiments, since they are basically similar to the method embodiments, the descriptions are relatively simple, and relevant parts can be referred to the descriptions in the method embodiments.
[0067] Furthermore, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0068] The foregoing description illustrates and describes preferred embodiments of the present invention. It should be understood that the present invention is not limited to the forms disclosed herein and should not be construed as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be altered within the scope of the inventive concept by means of the foregoing teachings or techniques or knowledge in related fields. Any modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.
Claims
1. A method for enlarging and displaying an interface based on the iOS platform, characterized in that, The method includes: In response to a user's preset trigger operation on the current application interface, an enlarged display area is presented on the current application interface, and real-time image data of the current application interface is acquired. Based on the interface position corresponding to the preset trigger operation, the area to be magnified is determined from the real-time image data, the content within the area to be magnified is dynamically magnified locally, and displayed in the magnified display area; The system detects user touch movements on the current application interface and updates the content displayed in the magnified display area based on the interface position change corresponding to the touch movement. In response to the operation of closing the magnified display area, the magnified display area is removed or hidden.
2. The interface magnification display method based on an iOS platform according to claim 1, characterized in that, The preset trigger operation includes a long press gesture on the current application interface, or a click operation on a preset magnification function control in the current application interface.
3. The interface magnification display method based on an iOS platform according to claim 1, characterized in that, The magnified display area is a circular overlay layer superimposed on the current application interface, and the circular overlay layer has blurred edges, highlight outlines, and a semi-transparent liquid glass visual effect; or the magnified display area is a preset fixed area in the current application interface. The step of dynamically and locally magnifying the content within the area to be magnified and displaying it in the magnified display area includes: A rectangular image corresponding to the area to be magnified is cropped from the real-time image data, and the rectangular image is magnified by a preset magnification to obtain an magnified image; The magnified image is drawn within the circular overlay, and the magnified image is masked by the circular boundary of the circular overlay, so that the content displayed within the circular overlay is circular; or, the magnified image is displayed within the fixed area.
4. The interface magnification display method based on an iOS platform according to claim 3, characterized in that, The detection of user touch movements on the current application interface, and the updating of the magnified content within the magnified display area based on the interface position change corresponding to the touch movement, includes: The touch movement operation is a single-finger drag operation on the circular overlay, which moves the position of the circular overlay on the current application interface; based on the interface position corresponding to the center point of the circular overlay after movement, the enlarged display content in the circular overlay is updated; or... The touch movement operation is a single-finger swipe operation on the current application interface. Based on the current position of the single-finger swipe operation on the current application interface, the interface content corresponding to the current position is enlarged and displayed in the fixed area.
5. The interface magnification display method based on an iOS platform according to claim 1, characterized in that, The detection of user touch movements on the current application interface, and the updating of the magnified content within the magnified display area based on the interface position change corresponding to the touch movement, includes: Calculate the target sampling coordinates based on the touch movement operation, and determine whether the target sampling coordinates exceed the valid data boundary of the real-time image data; If the target sampling coordinates are exceeded, the target sampling coordinates will be restricted to the nearest valid data boundary. Based on the constrained coordinates, the area to be magnified is redefined from the real-time image data, and the content of the redefined area to be magnified is magnified and displayed in the magnified display area.
6. The interface magnification display method based on an iOS platform according to claim 1, characterized in that, During the period when the magnified display area is enabled, the user's touch movement events are intercepted and determined; When it is determined that the touch movement event is for controlling the magnified display area, the touch movement event is assigned to the magnified display area for processing, so as to move the magnified display area or update the magnified content displayed in the magnified display area; otherwise, the touch movement event is ignored or the processing is delayed.
7. The method for zooming in on an iOS platform according to claim 1, characterized in that, The step of acquiring the real-time image data of the current application interface includes: The latest rendered frame data of the view controller's corresponding view layer is dynamically obtained from the system rendering pipeline and used as the real-time image data.
8. The interface magnification display method based on an iOS platform according to claim 1, characterized in that, The current application interface includes the device control interface of a smart home application or the status display interface of a smart home application.
9. An interface magnification display device based on an iOS platform, characterized by, The device includes: The triggering unit is used to respond to a user's preset triggering operation on the current application interface, present an enlarged display area on the current application interface, and acquire real-time image data of the current application interface. The magnification unit is used to determine the area to be magnified from the real-time image data based on the interface position corresponding to the preset trigger operation, dynamically magnify the content within the area to be magnified, and display it in the magnified display area. The display update unit is used to detect the user's touch movement operation on the current application interface, and update the content displayed in the magnified display area according to the interface position change corresponding to the touch movement operation. The shutdown control unit is used to remove or hide the magnified display area in response to a shutdown operation of the magnified display area.
10. An interface magnification display device based on an iOS platform, characterized by, The device includes a processor, a memory, and a computer program stored in the memory, wherein the computer program, when executed by the processor, implements the steps of the interface magnification display method based on the iOS platform as described in any one of claims 1 to 8.