Skip to content

An extension of the HHRouter tool to support storyboard and Xib file initialization controller

License

Notifications You must be signed in to change notification settings

Gavingsk/GVRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GVRouter

CI Status Version License Platform

Example

    [[GVRouter shared] map:@"/test/:userId/" toControllerClass:[TestXib class] nib:@"TestXib" bundle:[NSBundle mainBundle] index:0];
    [[GVRouter shared] map:@"/testSTB/:userId/" toControllerClass:[TestSTBVC class] storyBoard:@"TestSTB" bundle:nil identifier:@"TEST"];

    TestXib *test1VC = (TestXib*)[[GVRouter shared] matchController:@"/test/2/"];
    TestSTBVC *test2VC = (TestSTBVC*)[[GVRouter shared] matchController:@"/testSTB/2/"];
    NSLog(@"%@",[])

Requirements

Installation

GVRouter is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GVRouter"

Author

Gavingsk, gavin_gushaokun@126.com

Thanks

Thanks to huohua prepared by the HHRouter, the core code is HHRouter, but an increase of several methods.

License

GVRouter is available under the MIT license. See the LICENSE file for more info.

About

An extension of the HHRouter tool to support storyboard and Xib file initialization controller

Resources

License

Stars

Watchers

Forks

Packages

No packages published