I am creating a custom keyboard and I have a very strange situation.
I noticed that when I catch the Began event in the lower left corner (about 20 pixels) of the UIView (inputView), I will have a little delay here. Any action I do in touchBegan will be slower than in another area.
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { self.keypop.hidden = false } override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) { { self.keypop.hidden = true }
And this problem affects the performance of my application. In this example, I will not see the keyboard appear when I touch the left side on the left, because self.keypop.hidden delayed when it appears.
I donβt know why, or is it a bug from iOS 9? I am stuck with this problem for a week.
source share