Visibility of properties in Class Extensions and inheritance in Objective C
问题 Say I have 2 classes: Money and Dollar, where Dollar inherits from Money. Money has a property declared in a class extension: #import "Money.h" @interface Money () @property(nonatomic) NSUInteger amount; @end @implementation Money @end Dollar inherits this property, but it's not visible from methods in Dollar. I can "fix", by redeclaring the property in Dollar.m: @interface Dollar () @property(nonatomic) NSUInteger amount; @end @implementation Dollar } @end I really dislike this and I'm not