CLAdvanceNavigationController 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
CLAdvanceNavigationController 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
CLAdvanceNavigationController 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT
开发语言 Objective-C
操作系统 iOS
软件类型 开源软件
开源组织
地区 国产
投 递 者 changelee82
适用人群 未知
收录时间 2015-12-25

软件简介

CLAdvanceNavigationController 是页面切换时,拥有前进效果的导航栏。

image

使用方法:

在 AppDelegate.h 中声明全局导航栏
@class CLAdvanceNavigationController;
/**  全局导航栏 */
@property (strong, nonatomic) CLAdvanceNavigationController *navController;
在 AppDelegate.m 中初始化全局导航栏
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // 创建屏幕窗口视图
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];
    // 创建并设置全局导航栏为window的根视图
    self.navController = [[CLAdvanceNavigationController alloc] init];
    self.window.rootViewController = self.navController;
    // 设置导航栏首页
    FirstViewController *firstVC = [[FirstViewController alloc] init];
    [self.navController pushViewController:firstVC animated:YES];
    return YES;
}
在做页面切换时,使用正常使用导航栏代码
ThridViewController *thridVC = [[ThridViewController alloc] init];
[self.navigationController pushViewController:thridVC animated:YES];
[self.navigationController popViewControllerAnimated:YES];
[self.navigationController popToRootViewControllerAnimated:YES];
展开阅读全文

代码

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
3 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部