我想在Swift子类中覆盖这个Objective-C方法。但是我一直得到编译器错误:
来自AWSMTLModel
- (instancetype)initWithDictionary:(NSDictionary *)dictionary error:(NSError **)error
Swift子类
override func init!(dictionary dictionaryValue: [NSObject : AnyObject]!)//error: overriding declaration requires override keyword (fix it places override after func but gives same error
?
比!
更好。 - Luca Angeletti