<commit_before># LCNavigationController
除 UINavigationController 外最流行的 NavigationController！

![image](https://github.com/LeoiOS/LCNavigationController/blob/master/LCNCDemo.gif)
===
![image](https://github.com/LeoiOS/LCNavigationController/blob/master/LCNCDemo.png)

  ````
  心有猛虎，细嗅蔷薇。
  ````

欢迎访问 **我的博客**：http://LeoDev.me


## 前言 Foreword

效果参考 App：腾讯新闻、百度音乐等等



#### 配合`UITabBarController`使用请参考 [tabbar](https://github.com/LeoiOS/LCNavigationController/tree/tabbar) 分支！

**效果图：**

![image](https://github.com/LeoiOS/LCNavigationController/blob/tabbar/LCNCTabbarDemo.gif)



## 代码 Code

> 当成`UINavigationController`来用就行！方法都一样！
>
> 配合`UITabBarController`使用请参考 [tabbar](https://github.com/LeoiOS/LCNavigationController/tree/tabbar) 分支！

*
    - 方法一：[CocoaPods](https://cocoapods.org/) 导入：`pod 'LCNavigationController'`
    - 方法二：导入`LCNavigationController`文件夹到你的项目中 (文件夹在 Demo 中可以找到)
* 在`AppDelegate.m`中，`#import "LCNavigationController.h"`，参考如下代码：

    ````objc
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

        self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
        [self.window makeKeyAndVisible];

        UIViewController *mainVC = [UIStoryboard storyboardWithName:@"Main" bundle:nil].instantiateInitialViewController;

        LCNavigationController *navC = [[LCNavigationController alloc] initWithRootViewController:mainVC];

        self.window.rootViewController = navC;

        return YES;
    }
    ````
* 在你需要用到的地方`#import "LCNavigationController.h"`，然后：
    ````objc
    // 1. Push
    UIViewController *childVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"TwoVC"];
    [self.lcNavigationController pushViewController:childVC];

    // 2. Pop
    [self.lcNavigationController popViewController];
<commit_msg>1. Update README.md<commit_after># LCNavigationController
除 UINavigationController 外最流行的 NavigationController！

![image](https://github.com/LeoiOS/LCNavigationController/blob/master/LCNCDemo.gif)
===
![image](https://github.com/LeoiOS/LCNavigationController/blob/master/LCNCDemo.png)

  ````
  心有猛虎，细嗅蔷薇。
  ````

欢迎访问 **我的博客**：http://LeoDev.me


## 前言 Foreword

效果参考 App：腾讯新闻、百度音乐等等



#### 配合`UITabBarController`使用请参考 [tabbar](https://github.com/LeoiOS/LCNavigationController/tree/tabbar) 分支！

**效果图：**

![image](https://github.com/LeoiOS/LCNavigationController/blob/tabbar/LCNCTabbarDemo.gif)



## 代码 Code

> 当成`UINavigationController`来用就行！方法都一样！
>
> 配合`UITabBarController`使用请参考 [tabbar](https://github.com/LeoiOS/LCNavigationController/tree/tabbar) 分支！

* 
    - 方法一：[CocoaPods](https://cocoapods.org/) 导入：`pod 'LCNavigationController'`
    - 方法二：导入`LCNavigationController`文件夹到你的项目中 (文件夹在 Demo 中可以找到)
* 在`AppDelegate.m`中，`#import "LCNavigationController.h"`，参考如下代码：

    ````objc
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

        self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
        [self.window makeKeyAndVisible];

        UIViewController *mainVC = [UIStoryboard storyboardWithName:@"Main" bundle:nil].instantiateInitialViewController;

        LCNavigationController *navC = [[LCNavigationController alloc] initWithRootViewController:mainVC];

        self.window.rootViewController = navC;

        return YES;
    }
    ````
* 在你需要用到的地方`#import "LCNavigationController.h"`，然后：
    ````objc
    // 1. Push
    UIViewController *childVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"TwoVC"];
    [self.lcNavigationController pushViewController:childVC];

    // 2. Pop
    [self.lcNavigationController popViewController];

{'fraction_non_alphanumeric': 0.14062085433802068, 'fraction_numerical': 0.0013266118333775537, 'mean_word_length': 5.304347826086956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2510204', 'n_tokens_mistral': 1460, 'n_tokens_neox': 1372, 'n_words': 158}