Method and system for automatically preventing keyboard from being blocked by input source based on iOS system

An input source and keyboard technology, applied in the field of automatic anti-keyboard blocking of input sources, can solve problems such as intrusion into business logic, affecting normal use, and unclear input content, so as to solve the problem of keyboard blocking, reduce maintenance costs, and reduce processing logic. Effect

Pending Publication Date: 2022-04-22
INSPUR SOFTWARE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the position of the input source is too low, the input source will be blocked after the keyboard is adjusted, resulting in unclear input content and affecting normal use
In the normal development process, if you want to avoid the occlusion problem, you need to explicitly process the position of each input box. Before and after the keyboard pops up, adjust the display position of the input box. This will increase a lot of related processing codes, and the processing logic is complicated. intrusion into business logic
And as the project grows, the cost of code maintenance will become higher and higher

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for automatically preventing keyboard from being blocked by input source based on iOS system
  • Method and system for automatically preventing keyboard from being blocked by input source based on iOS system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] If attached Figure 1 As shown, the input source of the present invention based on the iOS system automatic anti-keyboard occlusion method. The method is as follows:

[0047] S1, non-invasive automatic detection and acquisition of keyboard status and input source status;

[0048] S2, determine the offset;

[0049] S3, unified interception of input source state changes, trigger anti-occlusion automatic adjustment mechanism;

[0050] S4, recursively find the parent scroll view, and constantly adjust the offset.

[0051] Step S1 of the present embodiment in the non-intrusive automatic detection and acquisition of keyboard status and input source status as follows:

[0052] S101, use iOS system keyboard status change notification Notification to obtain keyboard status;

[0053] S102, use the input source state change notification to obtain the input source status.

[0054] The offset determined in step S2 of the present embodiment is as follows:

[0055] When the input source i...

Embodiment 2

[0066] Input source of the present invention based on iOS system automatic anti-keyboard occlusion system, the system comprising,

[0067] Detection module for non-intrusive automatic detection and acquisition of keyboard status and input source status;

[0068] Determines the module, which is used to calculate the position dimension of the input source relative to the window Window when the input source is detected, that is, the offset;

[0069] Trigger module, which is used to uniformly intercept input source state changes and trigger anti-occlusion automatic adjustment mechanism;

[0070] The Lookup module, which is used to recursively find the parent scroll view, constantly adjusting the offset.

[0071] The detection module in the present embodiment comprises,

[0072] Keyboard status acquisition submodule, which is used to notify Notification to obtain keyboard status by using iOS system keyboard state changes;

[0073] Input source state acquisition submodule, which is used...

Embodiment 5

[0090] The present embodiment further provides an electronic device, comprising: a memory and a processor;

[0091] Wherein, the memory stores the computer to execute instructions;

[0092] The processor executes the memory stored computer execution instructions, such that the processor performs any embodiment of the present invention based on the input source of the iOS system automatic anti-keyboard occlusion method.

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

PUM

No PUM Login to view more

Abstract

The invention discloses an automatic keyboard shielding prevention method and system for an input source based on an iOS system, belongs to the technical field of computer software, and aims to solve the technical problem of how to automatically monitor a keyboard state and prevent a keyboard from shielding the input source. According to the technical scheme, the method specifically comprises the following steps that a keyboard state and an input source state are automatically detected and obtained in a non-intrusive mode; determining an offset; uniformly intercepting the state change of the input source, and triggering an anti-shielding automatic adjustment mechanism; and recursively searching the parent scroll view, and continuously adjusting the offset. The system comprises a detecting module, a determining module, a triggering module and a searching module.

Description

Technical field [0001] The present invention relates to the field of computer software technology, specifically a input source based on the iOS system automatic anti-keyboard occlusion method and system. Background [0002] With the development of mobile applications, users pay more and more attention to the experience of mobile applications, and the experience of applications will affect the promotion and use of applications. In the process of using the iOS system APP, to enter a content, the keyboard will be raised by clicking on the input source. If the input source position is too low, the input source will be obscured after the keyboard is turned up, resulting in unclear viewing of the input content and affecting normal use. In the usual development process, if you want to avoid the problem of occlusion, you need to explicitly handle the position of each input box, and adjust the display position of the input box before and after the keyboard pops out, which will increase a...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/04886G06F3/04883G06F3/0485G06F9/451
CPCG06F3/04886G06F3/04883G06F3/0485G06F9/451
Inventor 马仕信单文政孙彪
Owner INSPUR SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products