アニメーション中のタップ判定がしたくて、
tagが1のアニメーションしているUIViewの現在地を知るためにlayer.presentation()を使いました。しかしprintすると最終地点が表示されてしまいます。presentationでは移動している途中のpointは出せないのでしょうか?
swift
1 let target:UIView! = self.view.viewWithTag(1) 2 let location = target.layer.presentation()?.frame 3 print(location)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/03/01 02:57