IPhone SDK, biz sadece Nesneleri gözlemleyebilirsiniz değil gibi kasılarak CLLocationCoordinate2D?
Örnek: Ben tip bir özelliğini gözlemlemek istiyorum bazı çok basit bir kod var CLLocationCoordinate2D, ben ABC.m. içinde sentezlemek için emin olduk
@interface ABC
{
CLLocationCoordinate2D currentLocation;
}
@property (nonatomic, readwrite) CLLocationCoordinate2D currentLocation;
Şimdi başka bir sınıfta yapmam:
[ABC addObserver:self forKeyPath:@currentLocation options:NSKeyValueObservingOptionNew context:NULL];
Nedense, observeValueForKeyPath yöntemi o ana yol bildiriyor asla currentLocation olarak değiştirildi.
Teşekkürler,
sjs













