KVC is very useful, and the book emphasizes the use of KVC because, frankly, iOS development does not emphasize this enough , in my opinion. Understanding KVC is an extremely useful toolkit for iOS developers, and, unfortunately, its teaching has been left on the sidelines.
Having said that, for the reasons you have indicated, you should use property accessors. They catch errors during compilation, not runtime, and a little less.
KVC is useful when you are manipulating collections and very useful in dynamic situations or in situations where you do not necessarily know which object you are working with. These are areas in which point syntax fails pretty badly. The Dot syntax does not work with id , which, in my opinion, is in the cornerstone of Objective-C development.
In any case, there is no reason not to use property access devices, and I usually use them in my production code.
One final note: I do not use Xcode code generation. This has enough disadvantages that I recommend people use the mogenerator instead. You will have better results and a more convenient code base.
source share