我試圖做一個由UISwipeGestureRecognizer
觸發的自定義交互轉換,但狀態總是UIGestureRecognizerStateEnded
,所以我不能用它來控制動畫。UISwipeGestureRecognizer狀態總是結束
蘋果的文檔說Some of these states are not applicable to discrete gestures
但他們沒有說哪些狀態可用於UISwipeGestureRecognizer
。 [https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIGestureRecognizer_Class/index.html#//apple_ref/occ/instp/UIGestureRecognizer/state]
請問UISwipeGestureRecognizer
只有一個狀態,還是我做錯了什麼?