DCURLRouter icon indicating copy to clipboard operation
DCURLRouter copied to clipboard

通过自定义URL实现控制器之间的跳转

Results 4 DCURLRouter issues
Sort by recently updated
recently updated
newest added

这个项目是不是只适用于单导航项目?如 tabbarcontroller 每个自控制器自带导航,或者 present 带有导航的 viewcontroller 都不行? demo 里2presen3的时候你直接吧3设置为更控制器不好吧。。这样前两两个控制器被你注销了。

老铁 支持StoryBoard吗?

当我的工程的 根控制器 不是NavigationController 而是采用抽屉架构,导航栏只是作为抽屉的CenterVC 此时获取NavigationController为nil 返回的currentNavigationViewController是新创建UINavigationController 。这里算有个小bug吧,其实我是有导航的由于采用了抽屉架构,你没找到我的导航又新建了个导航。个人理解,如有差错,见谅。

+ (UIViewController *)initFromString:(NSString *)urlString fromConfig:(NSDictionary *)configDict{ // 支持对中文字符的编码 NSString *encodeStr = [urlString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]; return [UIViewController initFromURL:[NSURL URLWithString:encodeStr] withQuery:nil fromConfig:configDict]; } 导致html中打不开对应的fagment 链接示例:http://some-site.com:999/dir1/dir2;param?field-1=value-1&field-2=value-2#anchor1