いつもお世話になっております。
UIViewController のサブクラスを作成し、touchイベントを取得できるようにしたつもりだったのですが、
UIViewController の touchesMoved がなぜか1回しか呼ばれない、touchesEnded も呼ばれないといった
現象が起こっていて困っております。どのようにすれば、解決できるでしょうか?
swift3
1class MyUITableView :UITableView{ 2 3 override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { 4 superview?.touchesBegan(touches, with: event)} 5 6 override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) { 7 superview?.touchesMoved(touches, with: event)} 8 9 10 override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) { 11 superview?.touchesEnded(touches, with: event)} 12 13}

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/19 12:38