一个高效、灵活、简单的iOS跳转路由
已经有很多款不错的 Route 了,但都不是很满足需求。 有的不够高效,有的需要进行注册。很繁琐,于是就有了 WMRoute。
下载 Demo,把 WMRoute 文件拷贝到工程即可
Podfile 文件 添加
source 'https://github.com/MenaceiOS/WMSpecs.git'
pod 'WMRoute'
//代码创建 viewController
#define URL_TestAViewController @"code://TestAViewController"
//storyboard 创建 viewController
#define URL_TestBViewController @"sb://Main/TestBViewController"
[[WMRoute route]pushWithURLString:URL_TestAViewController param:nil animated:YES];
[[WMRoute route]presentWithURLString:URL_TestBViewController param:@{@"textId":@"33333"} animated:YES completion:nil];
传参直接在 param 中携带 即可。