Skip to content
一种导航栏一体化转场动画效果
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example
JCCNavigationController
.gitignore
JCCNavigationController.podspec
LICENSE
README.md
Screenshot.gif

README.md

JCCNavigationController

License Platform Language

Issues Cocoapod

A navigation bar integrated transition animation effect.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate JCCNavigationController into your Xcode project using CocoaPods, specify it to a target in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
  # your other pod
  # ...
  pod 'JCCNavigationController', '~> 1.0'
end

Then, run the following command:

$ pod install

You should open the {Project}.xcworkspace instead of the {Project}.xcodeproj after you installed anything from CocoaPods.

For more information about how to use CocoaPods, I suggest this tutorial.

Usage

AppDelegate

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    // Override point for customization after application launch.

    self.window = UIWindow.init(frame: UIScreen.main.bounds)
    let dashboardController = IHSDashboardController.init()
    self.window?.rootViewController = JCCNavigationController.init(rootViewController: self.dashboardController!)
    self.window?.makeKeyAndVisible()

    return true
}

UITableView

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    let detailViewController : IHSCookDetailViewController = IHSCookDetailViewController.init()
    self.jccNavigationController.pushViewController(viewController: detailViewController)

    tableView.deselectRow(at: indexPath, animated: true)
}

Screenshot

Screenshot

You can’t perform that action at this time.