Is there any data binding mechanism available for iOS?

前端 未结 8 1253
执念已碎
执念已碎 2020-12-09 03:36

In .NET I just do something like DataForm.Source = Object and then magic happens. Platform routes data changes from ui fileds to object properties, does validation and so on

8条回答
  •  离开以前
    2020-12-09 03:51

    I wrote a little open-source library that provides some simple data-binding functionality. It's basically just a wrapper around key-value observing (KVO).

    • http://github.com/kristopherjohnson/KJSimpleBinding

    There are a few other similar libraries on GitHub:

    • http://github.com/dewind/KeyPathBindings
    • http://github.com/jonsterling/Observe
    • http://github.com/mruegenberg/objc-simple-bindings
    • http://github.com/zeasy/EasyBinding

提交回复
热议问题