看板 MacDev 關於我們 聯絡資訊
※ 引述《leondemon (狗狗)》之銘言: : 想問一下要如何在iOS Simulator內測試 `touchesCancelled:withEvent:` : 印象中以前的Simulator中好像有 (嗎?) : 有沒有什麼shortcut key可以讓simulator收到`touchesCancelled:withEvent:` ? 回一下老文章 我繼承 UITextView 建一個自己的 TextView 然後接收 touchesXXXXX 如果按住 TextView 會先收到 touchesBegan: 接著就會收到 touchesCancelled: 此時畫面會變成選取文字狀態 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.170.46.1