【发布时间】:2015-06-03 14:40:16
【问题描述】:
如果我有这样的实体,在核心数据中
NSEntityDescription *entity = [NSEntityDescription entityForName:entityName inManagedObjectContext:managedObjectContext];
我可以通过方法获取它的属性
NSDictionary *entityAttributes = [entity attributesByName];
我想知道在 Realm 中方法 attributesByName 的等价物是什么。我需要一些能够返回属性名称和属性类型的东西。一直在他们的文档中搜索,但似乎找不到可用的类似功能。
【问题讨论】:
标签: ios core-data properties attributes realm