Re: [問題] How to test touchesCancelled:withEvent

看板MacDev作者 ( )時間13年前 (2012/06/09 20:19), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《leondemon (狗狗)》之銘言: : 想問一下要如何在iOS Simulator內測試 `touchesCancelled:withEvent:` : 印象中以前的Simulator中好像有 (嗎?) : 有沒有什麼shortcut key可以讓simulator收到`touchesCancelled:withEvent:` ? 回一下老文章 我繼承 UITextView 建一個自己的 TextView 然後接收 touchesXXXXX 如果按住 TextView 會先收到 touchesBegan: 接著就會收到 touchesCancelled: 此時畫面會變成選取文字狀態 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.170.46.1
文章代碼(AID): #1Fqpz0T8 (MacDev)
文章代碼(AID): #1Fqpz0T8 (MacDev)