TRVSNavigationControllerTransition
Push/pop transition entire UINavigationController views.
Install / Use
/learn @travisjeffery/TRVSNavigationControllerTransitionREADME
UINavigationController+TRVSNavigationControllerTransition Category
<hr />This category provides two methods on UINavigationControllers to push and pop view controllers with an animated transition of the entire UINavigationController's view, rather just the view controller's.
Author: Travis Jeffery
- @travisjeffery on Twitter
- @travisjeffery on GitHub
- travisjeffery@gmail.com
API
- (void)pushViewControllerWithNavigationControllerTransition:(UIViewController *)viewController;
- (void)popViewControllerWithNavigationControllerTransition;
Usages
One usage of this is when you push a view controller onto your UINavigationController and that view controller wants to have its navigationBar drawn above its view so that you can translate it in.
Example
The left photo below is using pushViewController:animated:, notice how the navigation bar
in the current view is put out of view by making the navigation bar's origin y point -the navigation bar's height (so you can animate
it in when the user scrolls) before the transition is finished. The right photo is using pushViewControllerWithNavigationControllerTransition:, now by
using multiple layers we can keep the navigationBar visible in the current view
until the transition completes. Keep an eye on the navigation bar.

MIT License, see the LICENSE file for details.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
Languages
Security Score
Audited on Sep 3, 2024
