douban / frdintent Goto Github PK
View Code? Open in Web Editor NEWA framework for handle the call between view controllers in iOS
License: MIT License
A framework for handle the call between view controllers in iOS
License: MIT License
比如说 B 模块向 A 模块提供一个数据获取获取方法 getData(), A 模块怎么去拿呢?
就是说不涉及到页面流转,只是单纯的数据流转。
我刚想了下,充分解耦之后,理论上应该让 A B 之间互相都不知道对方,页面跳转解决了,单纯数据交互呢?
有什么建议吗?
just swift, how can i register:path ? swift have nameSpace, NSClassFromString is nil,can this be fixed!
在使用FRDIntent的时候发现只有模态状态才可以进行FRDIntentForResultSendable的方法获取返回的数据
尝试通过自定义转场动画发现不行看源码才知道 startControllerForResult 默认是模态的方法切无法进行自定义,只能通过更改源代码进行实现。希望作者看到后可以接纳我的建议
最后非常感谢作者提供了这个轮子
如题
个人感觉这样好别扭,能不能先检测Top VC是否就是外部App需要显示的界面呢?如果是同样的VC,那只需要重新加载数据即可,不需要重新创建一个VC再push。
希望出个纯swift的demo
pod 'FRDIntent/Intent', :git => 'https://github.com/douban/FRDIntent.git', :commit => '0.9.0'
从外部进APP 使用URLRoutes 切换模式是present方式 然后无法实现dismiss方法
FRDIntent *intent = [[FRDIntent alloc] initWithPathIdentifier:@"/video_detail"];
[intent putExtraWithName:@"videoId" data: [NSString stringWithFormat:@"%ld",(long)self.videoList[indexPath.row].videoId]];
[self startControllerWithIntent: intent];
目前data
是FRDIntent
类型,但我觉得没必要,改成 [String: AnyObject]
就可以了,因为intent的URL等属性又没有用到,最多extra就包含返回结果了。
PR:#17
已经不维护了吗,pod不下来了
RT : 需要URL进行参数的比对跟校验才确定是否跳转或者跳转H5的处理
rt,是我弄错了吗
Tries的实现,搜索placeholder时还是有 bug
注册 /a/:b/c/
注册 /a/x/c/d/
route /a/x/c/ 不能跳转到/a/:b/c/
如题.
个人感觉TabBarViewController和它的几个子ViewController是强耦合的东西,把TabBarViewController当做一个整体来看比当做几个子模块看会更好。
还有一些比如ChildViewController的切换,似乎都限制在它的ParentController里面,这种解耦是没必要的。
不知道你怎么认为?
Why not use open
replace public
for class FRDControllerManager
,
here, i want to custom it ...
Also issue for other classes.
如题
操作步骤:在Safari输入:frdintent://frdintent.com/user/123,点击"Open"
期望结果:打开FirstVC
实际结果:打开了主界面
环境:Xcode 8.1,iOS 10.1, iPhone 7 Plus Simulator
PS:未修改任何代码
安装的是xcode9,用cocoapods安装运行不了,xcode9最低只支持swift3.0的语法,直接下载demo导入项目中,页面不能跳转.
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.