一時的なプロパティを理解しようとしています。私はこのオブジェクトを持っています:
@interface AddressAnnotation : NSObject <MKAnnotation>
@property (nonatomic, copy) NSString *address;
@property (nonatomic, copy) NSString *city;
@property (nonatomic, strong) NSNumber *latitude;
@property (nonatomic, strong) NSNumber *longitude;
@property (nonatomic, assign) CLLocationCoordinate2D coordinate;
@property (nonatomic, strong) NSString *state;
@property (nonatomic, strong) NSString *street;
@property (nonatomic, strong) NSString *zip;
@property (nonatomic, strong) NSString *name;
これを使用して、MKMapView に注釈を表示します。これらのピンをルート エンティティに保存したいと考えています。Route では、ユーザーがルートに名前を付けることができます。私のアプリで本当に重要なのは、緯度と経度だけです。緯度/経度があるので、逆ジオコーダーでいつでも再計算できる他のプロパティ。スペースを節約するために、このオブジェクトを Core Data エンティティにしたい場合、緯度と経度の一時的なプロパティではないすべてのプロパティを作成できますか? 他の非一時的なプロパティに基づいて計算されたプロパティに一時的なものが使用された例をいくつか読みました。これはトランジェントの適切な使用ですか?ありがとう。