Is there any data binding mechanism available for iOS?

前端 未结 8 1254
执念已碎
执念已碎 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:42

    I use CoreDataTableViewController from the Stanford University for my TableViewControllers. It hides a lot of details that you would normally implement in your TableViewController.

    Googling for CoreDataTableViewController.h and .m will help you on the road. There are versions from several courses available, the latest does ARC, the old ones don't.

    For syncing labels and edit fields with an NSManagedObject, I am still looking for a good solution.

提交回复
热议问题