Giter VIP home page Giter VIP logo

rx-sample-code's Introduction

rx-sample-code

Demo 列表

仿 Apple 计时器逻辑,使用了 MVVM 和状态机,代码仅 200 行。

仿 PDF Expert 目录展开逻辑,支持无限层级展开。

如何在 iOS 中实现一个可展开的 Table View 一文的 Demo ,用 Rx 重写。

RxDataSourcesExample

RxDataSources 基本使用例子。

SelectCell

更新 Cell 选择状态例子,如选择联系人(单选/多选)。

这是一种单选的方案,另外一种可以参见 TwoWayBind 中的 SelectPayment ,根据具体情况选择使用哪种方案。个人推荐本例中的选择联系人方案。

TwoWayBind

内含:

  • 加减购物车
  • 选择支付方式
  • 更改带组分类的推送设置

如何运行

项目依赖使用 Carthage 管理。

参考命令:

carthage update --verbose --platform ios --color auto --no-use-binaries

期待其他 Demo 或者对代码有什么疑问或者建议,欢迎提 issue ,我会尽快回复。

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.