开发者

Core Data and UI Binding

开发者 https://www.devze.com 2023-01-07 18:58 出处:网络
My application builds its user interface and a core data model through code (no .xib .nib or .xcdatamodel files).

My application builds its user interface and a core data model through code (no .xib .nib or .xcdatamodel files).

I'm having trouble finding documentation on how to bind core data entity attributes (in an NSManagedObject) with the object properties of a UIView or UIViewControler such that the two are kept synchronized with each other.

I could simply write code to move data between Core Data and the UI, then trap all events for field changes, but there are hints everywhere that this can 开发者_JS百科be handled automatically using Key-Value mapping somehow.

Can anyone point me in the right direction or show me some sample code on how this binding is achieved through code?

Much appreciated. Chris.


Bindings are not available on iOS. Instead there is the NSFetchedResultController.

0

精彩评论

暂无评论...
验证码 换一张
取 消