What is Key-Value-Coding and Key-Value-Observing in Objective C?

前端 未结 4 448
情话喂你
情话喂你 2021-01-29 22:56

Can someone explain in simple terms what is Key-Value-Coding and Key-Value-Observing? Please don\'t provide links to Apple Developer\'s reference Docum

4条回答
  •  野的像风
    2021-01-29 23:30

    Start here.

    Key-value coding is a mechanism for accessing an object’s properties indirectly, using strings to identify properties, rather than through invocation of an accessor method or accessing them directly through instance variables.

提交回复
热议问题