Latest 0.0.1
Homepage https://github.com/idevzhou/ZYYRouter
License MIT
Platforms ios , requires ARC
Authors

Pod Version
Pod License
Pod Platform
Carthage compatible

A navigation router for iOS.

Installation

From CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like ZYYRouter in your projects. First, add the following line to your Podfile:

pod 'ZYYRouter'

If you want to use the latest features of ZYYRouter use normal external source dependencies.

pod 'ZYYRouter', :git => 'https://github.com/idevzhou/ZYYRouter.git'

Manually

Drag the ZYYRouter/ZYYRouter/ZYYRouter folder into your project.

Usage

+ (instancetype)sharedRouter;
- (UIViewController *)currentViewController;
- (UINavigationController *)currentNavigationController;
- (void)setRootViewControllerWithClassName:(NSString *)className;
- (void)showViewController:(NSString *)viewControllerName parameters:(NSDictionary *)parameters;
- (void)showViewController:(NSString *)viewControllerName parameters:(NSDictionary *)parameters animated:(BOOL)animated;
- (void)presentViewControllerWithClassName:(NSString *)viewControllerName parameters:(NSDictionary *)parameters animated:(BOOL)animated;
- (void)backToViewController:(NSString *)viewControllerName parameters:(NSDictionary *)parameters;
- (void)backToViewController:(NSString *)viewControllerName parameters:(NSDictionary *)parameters animated:(BOOL)animated;
- (void)popViewController;
- (void)popViewControllerAnimated:(BOOL)animated;
- (void)popToRootViewController;
- (void)popToRootViewControllerAnimated:(BOOL)animated;

Latest podspec

{
    "name": "ZYYRouter",
    "version": "0.0.1",
    "summary": "A navigation router for iOS.",
    "description": "A detail description of ZYYTimerAdd in Markdown format.",
    "homepage": "https://github.com/idevzhou/ZYYRouter",
    "license": {
        "type": "MIT",
        "file": "FILE_LICENSE"
    },
    "authors": {
        "idevzhou": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/idevzhou/ZYYRouter.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "ZYYRouter",
        "ZYYRouter/ZYYRouter/ZYYRouter/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "requires_arc": true
}

Pin It on Pinterest

Share This