[[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(@"%@",[])
GVRouter is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GVRouter"
Gavingsk, gavin_gushaokun@126.com
Thanks to huohua prepared by the HHRouter, the core code is HHRouter, but an increase of several methods.
GVRouter is available under the MIT license. See the LICENSE file for more info.