CLAdvanceNavigationController iOS 导航栏

程序名称:CLAdvanceNavigationController

授权协议: MIT

操作系统: iOS

开发语言: Objective-C

CLAdvanceNavigationController 介绍

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];

CLAdvanceNavigationController 官网

https://github.com/changelee82/CLAdvanceNavigationController

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...