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