作者wasihero ( )
看板MacDev
标题Re: [问题] How to test touchesCancelled:withEvent
时间Sat Jun 9 20:19:09 2012
※ 引述《leondemon (狗狗)》之铭言:
: 想问一下要如何在iOS Simulator内测试 `touchesCancelled:withEvent:`
: 印象中以前的Simulator中好像有 (吗?)
: 有没有什麽shortcut key可以让simulator收到`touchesCancelled:withEvent:` ?
回一下老文章
我继承 UITextView 建一个自己的 TextView
然後接收 touchesXXXXX
如果按住 TextView
会先收到 touchesBegan:
接着就会收到 touchesCancelled:
此时画面会变成选取文字状态
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 1.170.46.1