4 Star 6 Fork 3

nnareel / NANavigationController

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

#NANavigationController

一个自定义的导航控制器,当在某个ViewController中的NavigationBar设置透明的时候,既可以通过新包装一个NavigationController来完成连续的动画切换。有关想法参考了JTNavigationController的方式。

不同的是,当Push时,当前页面与下个页面的NavigationBar隐藏状态不同的时候才会包装NavigationController进行切换,若两者隐藏状态相同(均隐藏,均不隐藏)的时候,则使用原生动画进行过渡。

此外NANavigationController支持使用StoryBoard。

####如何使用:

  1. 复制工程里的相关NA开头的文件以及UIViewController+NANav至您的项目中。
  2. 在StoryBoard中将NavigationController设置成为为NANavigationController
  3. ViewController之间的Segue之间选择NANavSegue方式进行Push。
  4. 所有需要隐藏NavigationBarViewController需要添加UIViewController+NANav.h文件至头文件并设置隐藏状态,如果不需要隐藏可以不设置。

The MIT License (MIT) Copyright (c) 2016 nnareel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个自定义的导航控件,解决原生在透明与不透明的NavigationBar页面间切换所产生的动画问题。 展开 收起
Objective-C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Objective-C
1
https://gitee.com/nnareel/NANavigationController.git
git@gitee.com:nnareel/NANavigationController.git
nnareel
NANavigationController
NANavigationController
master

搜索帮助