Comments (5)
如果能提供类似微信小程序那种界面和js中data属性的绑定,将会大大降低view和model间通信代价
这种可以学习一下MVVM中的ReactiveCocoa
from flexlib.
from flexlib.
@lztbwlkj 可能我没表达清楚,我的想法是,既然作者已经想往web前端编程**上靠,为什么不彻底点呢?时下都流行在xml中类似{{nickname}}动态赋值的方式, 如果能这样,将会大大减少在OC中访问UI控件的频率,我相信这也是作者写下这个库的初衷之一。另外RAC我也用过几年。
from flexlib.
在内部项目中有基于FlexLib的这种绑定的扩展,原理也很简单,但由于某些原因不太方便合并过来,有兴趣的可以扩展下
@lztbwlkj 可能我没表达清楚,我的想法是,既然作者已经想往web前端编程**上靠,为什么不彻底点呢?时下都流行在xml中类似{{nickname}}动态赋值的方式, 如果能这样,将会大大减少在OC中访问UI控件的频率,我相信这也是作者写下这个库的初衷之一。另外RAC我也用过几年。
from flexlib.
{{}}赋值搞定了吗?谁分享下
from flexlib.
Related Issues (20)
- 支不支持动画? HOT 1
- stickTop:true无效,官方demo也没有任何效果 HOT 3
- 喜欢flex布局的便捷,和Texture框架比较怎么选择? HOT 9
- 转义字符好像玩不转 HOT 1
- how to user Macro FLEXSET in swift HOT 2
- 如何添加for 增加多个大小不一视图能力,并对应绑定视图 HOT 1
- 预览模块如何只在 debug 下使用 HOT 4
- 如何在自定义的宏中添加参数,然后用在 xml 里 HOT 3
- 自定义宏,不管用 HOT 4
- 控件平移等动画
- 样式 class 的使用
- 请问如何使用xml进行App主题颜色的适配?
- xml文件里,第一次触摸到 UITextField 后,就滑动不了了。 HOT 2
- FlexShowToast有时好使,有时不好使 HOT 2
- pod 问题。。 HOT 1
- 热加载 HOT 1
- FlexLib 做阿拉伯适配 . 设置 direction:rtl . 无效呢
- Xcode14.3 报错 HOT 1
- APP需要更新UI修改了xml文件,旧用户更新应用后还是旧的xml文件,APP更新,相同文件名的xml不会更新
- 代码提示警告修复 HOT 1
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 flexlib.