Comments (4)
这个方法应该被归类为不推荐使用的将废弃方法,这是我们在业务中为了实现首次进入
TangramFlowLayout 时进行一次状态请求的后门,后期维护时可能会从开源版本中移除。
如果您想了解具体的细节的话:
- 这里并不是用来刷新页面的(比如我们是触发一次定位请求)
- 网络请求应该在代码里去掉重复请求,只执行一次
from tangram-ios.
安卓版本也有这几个字段,我理解他的作用是,异步请求卡片的内容数据。这个功能应该不会去除吧?
from tangram-ios.
异步加载数据一方面来说比较倾向于业务逻辑,而不是底层框架特性。框架可以在合适的时机抛出 didEnter / didLoaded 等事件供业务层来进行对应功能扩展。
另一方面至少从设计角度来说,不太应该在 calculateLayout
方法中进行数据请求的 Bus 事件发送。
from tangram-ios.
好的,我这里参照安卓,在Tangram的scrollViewDidScroll方法中遍历了visibel layouts,对设置了loadApi的layout发出了asyncload的event,由业务方处理该event。
from tangram-ios.
Related Issues (20)
- ios和安卓共用一套json的话怎么设置屏幕Width,一个是750,一个是720的,ios的比例参数在哪设置
- 自动布局怎么计算高度
- xml解析部分存在许多问题,不建议使用
- index返回错乱导致崩溃
- SDWebimage版本依赖问题
- 请问页面下拉刷新功能如何添加? HOT 1
- VirtualView复用时内部布局错乱 HOT 3
- VirtualView组件无法自适应高度 HOT 3
- layout不支持background表达式形式 HOT 1
- 之前的交流群失效了
- TangramLayoutTypeMap在pod中找不到
- 使用GridLayout布局问题
- TangramPageScrollLayout滚动回调怎么设置?
- IOS 12.0 那个悬浮控件的会跟着滚动上下跳动,能否处理一下 HOT 1
- Container可以嵌套Container吗?
- 代码bug HOT 1
- 怎样获得TAC服务端代码,网站的那个介绍没用了
- 文档提供
- 更新版本和点击事件 HOT 1
- 请问ios的能直接动态加载二进制模板数据吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tangram-ios.