uxyheaven / xyrouter Goto Github PK
View Code? Open in Web Editor NEWXYRouter是一个通过URL routing来解决UIViewController跳转依赖的库.
License: MIT License
XYRouter是一个通过URL routing来解决UIViewController跳转依赖的库.
License: MIT License
@{@"title": @"TestVC1#viewControllerWithStr1:str2:,你好,世界!"}
通过锚点获取到的UIViewController实例会自动dealloc~~
解决方案:
[invocation invoke];
void _returnValue;
[invocation getReturnValue:&returnValue];
return (_bridge UIViewController)returnValue;
不知道你测试了没有..... xcode 7.2 报错
想法很好。
以后界面的 逻辑层次,直接看 path就能知道了。
就像文件夹一样。
还能通过指令,让VC 进行 dismiss,push,module,切换window root等操作。
还能添加专场动画。
期待最终版。
加油
[[XYRouter sharedInstance] openURLString:@"/FirstVC?str=我们"];
RT, 现在映射block貌似只能返回vc, 但是如果vc要获取url里面的参数的话貌似不行
你的注释还敢再少点吗?
希望能支持传object的参数
finalVC = finalVC ?: [self viewControllerForKey:[components lastObject]];
if (finalVC == nil)
{
return;
}
这里如果传入的url是全的( app:///block/some), 这时key为 some
, 就找不到block了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.