草庐IT

defaultPropertyValues

全部标签

ios - 从 Realm 的子类调用 [super defaultPropertyValues] 是一种好习惯吗?

我的问题不仅涉及+(NSDictionary*)defaultPropertyValues方法,还涉及+(NSArray*)ignoredProperties、+(NSArray*)indexedProperties等例如://.h-file@interfaceA:RLMObject@propertyNSStringpropertyA;@end//.m-file@implementationA+(NSDictionary*)defaultPropertyValues{return@{@"propertyA":@""};}@end比起我定义类B继承形式A//.h-file@interfa