Skip to content

yuri-htt/CirculearTransition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CirculearTransition

Create a Circular Transition Animation by using "Custom UIViewController Transitions"

iOS 7から、画面遷移のアニメーションをカスタマイズできるようになりました。

今回はこちらのチュートリアル動画を参考に、ボタンに画面遷移のアニメーションを実装しました。
https://www.youtube.com/watch?v=-BiGO7CJZ7Q&list=PLY1P2_piiWEaaeO49ria36p6lQ1uk0q_F

###【関連プロトコル】

・UIViewControllerAnimatedTransitioning(アニメーションコントローラ)
・UIViewControllerContextTransitioning(画面遷移コンテキスト)
・UIViewControllerTransitioningDelegate (画面遷移デリゲート※)

###【実装内容】 ####アニメーションコントローラの作成 画面遷移時に用いるアニメーションの実態をUIViewControllerAnimatedTransitioningを採用したクラスで実装する。
このとき、UIViewControllerAnimatedTransitioningを採用したクラスのことをアニメーションコントローラと呼ぶ。

####アニメーションコントローラーを指定 遷移元のVCで画面遷移デリゲート(UIViewControllerTransitioningDelegate)を採用し、画面遷移時のアニメーションコントローラを指定する。

画面遷移コンテキスト UIViewControllerContextTransitioningを採用したオブジェクトのことを画面遷移コンテキストと呼ぶ。
画面遷移コンテキストは遷移先、遷移元などの画面遷移に必要な情報を管理するオブジェクトで、システムが作成する。

About

Create a Circular Transition Animation by using "Custom UIViewController Transitions"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages