override classes variable, or at least variable type in objective-c / cocoa
问题 My dilemma is as follows: I have a custom subclass of UIImage (I've added some serialization methods i.e. initWithCoder, encodeWithCoder), and I would like to apply my custom subclass as a variable to a UIImageView, or at least a subclass of UIImageView. As you are aware, UIImageView has a variable called "image", that is of type UIImage. I'd like to override this variable with my subclass. My goal is to have a UIimageView that will respond to archivedDataWithRootObject without crashing with