SWTableViewCellをスワイプする方法もっと粘着性を高めます
-
23-12-2019 - |
質問
サイドスワイプをボタンなどのより多くのUIを表示できるようにするために、SWTableViewCell
コードを実装しました。
UIScrollview
ITサブクラスは、Ping Pongのマニックゲームのように前後に点灯しています。
私はクラスを変更しに行きましたが、UIScrollView
が実現されていないようではなかった。
私は、スクロールビューの代わりにPANジェスチャとオーバーレイビューを備えた自分のバージョンのスワイプセルを作成する必要があると考えています。
解決
他のヒント
Not sure if this will give you the effect you desire, but you can make it less "jumpy" by altering the decelerationRate. Try:
someScrollView.decelerationRate = UIScrollViewDecelerationRateFast;
If that's the right idea, you can jump-to-definition in Xcode, and checkout the float value, then try your own.
所属していません StackOverflow