8
同じUINavigationControllerに2つのUIViewがあります。私はいくつかのカスタムアニメーションスタイルを適用したいので、私はUINavigationController内のプレゼンテーションの進行のパーセンテージを知りたいと思います。これはどうすればいいですか?UINavigationControllerのトランジションパーセンテージを取得
私はこのような関数たい:
class ExampleNavigationController: UINavigationController {
func viewControllerMoves(from: UIViewController, to: UIViewController, progress: CGFloat) {
//I can read here how far the animation is and apply custom animation styles
}
}
この機能は、ユーザーによる更新時に呼び出されなければなりません: 例 - >http://www.latet.nl/appvideo.mov
私はこれをどのように行うのですか?
例スクリーンは
割合は0.50
割合が1.00
割合が0.00
あろうであろうであろう10