2013-05-13 35 views

回答

3

你可以使用一個CAShapedLayer與路徑創建剪裁路徑和應用此滾動視圖的圖層的蒙版。在視圖的hitTest:withEvent:中使用相同的路徑來決定UIView是否應該對觸摸做出響應。

+0

感謝您的回答。你可以發佈一些關於剪輯和命中的鏈接或代碼嗎? – 2013-05-13 17:12:45

+0

谷歌呢?認真地說:那裏應該有噸。 – vikingosegundo 2013-05-13 17:15:41

+0

HOR命中測試:http://stackoverflow.com/questions/4961386/event-handling-for-ios-how-hittestwithevent-and-pointinsidewithevent-are-r – vikingosegundo 2013-05-13 17:27:16