Super class Resource
@interface Resource : CoderObject
@property (strong, nonatomic) NSString *resourceID;
@property (assign, nonatomic) ResourceType resourceType;
@property (assign, nonatomic) DataType dataType;
@end
Subclass ViewResource
@interface ViewResource : Resource
@property (strong, nonatomic) CustomView *view;
@property (strong, nonatomic) UIViewController *viewController;
@end
In subclass ViewResource
's init
method how to access Resource
's variable dataType
? Now I'm trying to just use super.dataType = ...
Is there other ways?