From 9d4317f4db77e7dde50b30107337594da7086971 Mon Sep 17 00:00:00 2001 From: Light Date: Tue, 18 Mar 2014 11:25:12 +0800 Subject: [PATCH] README. --- HHRouterExample/AppDelegate.m | 11 ----------- README.md | 26 ++++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 README.md diff --git a/HHRouterExample/AppDelegate.m b/HHRouterExample/AppDelegate.m index 6fca4da..a587fcf 100644 --- a/HHRouterExample/AppDelegate.m +++ b/HHRouterExample/AppDelegate.m @@ -8,22 +8,11 @@ #import "AppDelegate.h" #import "HHRouter.h" -#import "UserViewController.h" -#import "StoryViewController.h" -#import "StoryListViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - //NSString *url = @"huohua://user/:userId/?a=bc&c=d"; - NSString *url = @"/user/:userId/?a=bc&c=d"; - NSLog(@"%@", url.pathComponents); - - [[HHRouter shared] map:@"/user/:userId/" toControllerClass:[UserViewController class]]; - [[HHRouter shared] map:@"/story/:storyId/" toControllerClass:[StoryViewController class]]; - [[HHRouter shared] map:@"/user/:userId/story/" toControllerClass:[StoryListViewController class]]; - self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f97da7 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +HHRouter +===== +Yet another URL Router for iOS. Clean, Fast & Powerful. + +## Usage + + +## Installation +### [CocoaPods](http://cocoapods.org/) + +```ruby +pod 'HHRouter', :git => 'https://github.com/Huohua/HHRouter.git', :commit => '21625ab064ad456d5c49c4e31b564cd628457023' +``` + +```objective-c +#import +``` + +If you're not able to use CocoaPods, please install HHRouter as a [git submodule](http://schacon.github.com/git/user-manual.html#submodules) and add the files to your Xcode project. + +## Contact +- [lightory@gmail.com](mailto:lightory@gmail.com) +- [http://twitter.com/lightory/](http://twitter.com/lightory/) + +## License +HHRouter is available under the [MIT license](https://github.com/Huohua/HHRouter/blob/master/LICENSE). \ No newline at end of file