MapKit uses key value observing (KVO) for change notification, so to
change the location of an already added annotation programmatically
and have it update on the map, you need to raise the KVO notification
for the coordinate by calling WillChangeValue in the MKAnnotation
implementation. For example,
public override CLLocationCoordinate2D Coordinate {
get {
return coord;
}
set {
coord = value;
WillChangeValue("coordinate");
}
}
On Mon, Jul 16, 2012 at 8:22 AM, lemcube <[email protected]> wrote:
> I've the same problem and i see the solution indicated: is it still valid?
> how do i use it? do i have to integrate it in my custom class
> MKCustomAnnotation that is subclassing MKAnnotation?
>
> i'm new to monotouch. thanks to all.
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/setCoordinate-binding-tp3799997p4655990.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch