iOS to determine if it is a handwriting keyboard

Source: Internet
Author: User

Idea: traversing keyboard window subviews, if found Uikbhandwritingview, then the current keyboard is a handwriting keyboard;

Location of the handwriting keyboard:

Uiremotekeyboardwindow

Uiinputsetcontainerview

Uiinputsethostview

_uikbcompatinputview

Uikeyboardautomatic

Uikeyboardimpl

Uikeyboardlayoutstar

Uikbkeyplaneview

Uikbhandwritingview

Uikbhandwritingcandidateview

Note that the display Uikeyboardlayoutstar is the first view of Uikeyboardimpl, but the actual ipad is as follows:

For in, if the number of array elements traversed is zero, no traversal is performed;

Break terminates loop execution the code below the loop body
Return terminates the loop and exits the method where the loop is located
Continue terminates the current loop, making the next loop

iOS to determine if it is a handwriting keyboard

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.