Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のiPhoneアプリケーションでは、coredataを使用しました。
coredataを使用したテーブルの列名(フィールド名)が必要です。
私はそれを探しましたが、それを取得する方法を見つけていません。
助けてくれてありがとう。
NSManagedObjectModelと呼ばれるメソッドがあり、(テーブル)entitiesの束を提供しNSEntityDescription、そのクラスで検索attributesByNameしrelationshipsByNameて列を提供します。
NSManagedObjectModel
entities
NSEntityDescription
attributesByName
relationshipsByName
を呼び出すことで取得できるモデル[[<yourManagedObjectContext> persistentStoreCoordinator] managedObjectModel]。
[[<yourManagedObjectContext> persistentStoreCoordinator] managedObjectModel]