1.

State the difference between KVC and KVO in Swift.

Answer»

KVC (Key-Value Coding): It enables object properties to be accessed at runtime using strings rather than knowing the property names statically during DEVELOPMENT.   

KVO (Key-Value OBSERVING): In Objective-C and Swift, KVO is one of the methods for observing PROGRAM STATE changes.  If an object has instance variables, KVO enables other objects to observe the changes to those variables. 



Discussion

No Comment Found