iOS 导航栏 CLAdvanceNavigationController
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/changelee82/CLAdvanceNavigationController
- 软件文档: https://github.com/changelee82/CLAdvanceNavigationController
软件介绍
CLAdvanceNavigationController 是页面切换时,拥有前进效果的导航栏。
使用方法:
在 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];
C和C++代码精粹
阿林森 / 董慧颖 / 人民邮电出版社 / 2003-4-1 / 59.00
《C和C++代码精粹》基于作者备受好评的C/C++ User Journal杂志上的每月专栏,通过大量完全符合ISO标准C++的程序集合,说明了C++真正强大的威力,是C和C++职业程序员的实践指南。可以帮助有一定经验的C和C++程序员深入学习这两种密切相关的语言,对书中代码的参悟和应用,可以帮助他们从根本上提高使用程序的效率。一起来看看 《C和C++代码精粹》 这本书的介绍吧!
