Router 写了三个版本,最后发现跟 __MGJRouter__ 大部分重合,最后在 __MGJRouter__ 的基础上封装了一层
我增加了 __HQRouterHelper__ 工具类读取路由表,想着以后如果有多个路由文件在这里处理处理
刚从内网 gitlab 转过来,没上 pod,很多东西暂时没有 具体用法
/** 返回一个控制器 !找不到返回一个默认控制器*/
+ (UIViewController *)controllerForURL:(NSString *)URL;
/** Push一个页面 */
+ (void)pushURL:(NSString *)URL animated:(BOOL)animated;
+ (void)pushURL:(NSString *)URL withUserInfo:(NSDictionary *)userInfo animated:(BOOL)animated;
/** Present一个页面 */
+ (void)presentURL:(NSString *)URL animated:(BOOL)animated;
+ (void)presentURL:(NSString *)URL withUserInfo:(NSDictionary *)userInfo animated:(BOOL)animated;