The crash problem of Chinese handwriting input method on iOS8.1

Source: Internet
Author: User

In the Chinese handwriting input method, will cause the app crashes, at debug, the error is:

2014-10-22 14:45:10.269 app[524:170755]-[uikbblurredkeyview candidatelist]: Unrecognized selector sent to instance 0x16ff44b0



after some tossing, confirm yes-(void) Touchesbegan: ( Nsset *) touches withevent: (uievent *) is caused by event error usage.



The following code was previously added to an unrelated view controller class.


@implementation Uiscrollview (Touch)


-(void) Touchesbegan: ( Nsset *) touches withevent: (uievent *) Event

{

//If not dragging, send event to next responder

if (! Self . dragging ) {

[self. Nextresponder Touchesbegan: Touches withevent: event];

} else {

[supertouchesended: Touches withevent: Event];

}

}


-(void) touchesmoved: ( Nsset *) touches withevent: (uievent *) Event

{

//If not dragging, send event to next responder

if (! Self . dragging ) {

[self. Nextresponder Touchesbegan: Touches withevent: event];

} else {

[supertouchesended: Touches withevent: Event];

}

}


-(void) touchesended: ( Nsset *) touches withevent: (uievent *) Event

{

//If not dragging, send event to next responder

if (! Self . dragging ) {

[self. Nextresponder Touchesbegan: Touches withevent: event];

} else {

[supertouchesended: Touches withevent: Event];

}

}


However, there are two problems here.


One, I started using Xcode6 's search function, but did not find this code. Because the search did not find this code, resulting in later toss time extension.


Therefore, the XCODE6 search function is not trustworthy.


Two, this code exists in an unrelated view controller class, although the class was main.storyboard applied, but did not load, I thought not applied to the global application code. It does not seem to be the same for the entire application code.

The crash problem of Chinese handwriting input method on iOS8.1

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.