JCCNavigationController导航栏一体化转场动画

联合创作 · 2023-09-26 11:51

JCCNavigationController

一种导航栏一体化转场动画效果

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)
}


浏览 7
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报