CocoaPods trunk is moving to be read-only. Read more on the blog, there are 3 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2016 |
Maintained by Zeyu Tao.
| Depends on: | |
| HTR3 | ~> 0.0.1 |
| HTCommonUtility | ~> 0.0.2 |
UniversalRouter :使用URL来定位页面及页面导航。
配置页面,注册URL到Router
+ (HTControllerRouterConfig*)configureRouter
{
HT_EXPORT();
HTControllerRouterConfig *config = [[HTControllerRouterConfig alloc] initWithUrlPath:@"app://singleinstance/{id}"];
return config;
}
在有导航栏的页面中push一个页面
#import "UIViewController+HTRouter.h"
[self pushViewControllerWithURL:@"app://aviewcontroller"];
用push方式打开一个单例页面,如果已经存在这个页面,将该页面从页面栈中取出,不影响其他页面栈中的页面
HTControllerRouteParam *param = [[HTControllerRouteParam alloc] initWithURL:@"app://singleinstance/12" launchMode:HTControllerLaunchModePush];
//支持配置单例页面的
param.singleInstanceShowMode = HTControllerInstanceShowModeMoveToTop;
[[HTControllerRouter sharedRouter] route:param];
该项目最低支持iOS 7.0和Xcode 7.0
UniversalRouter,详情见LICENSE文件。