Sunday 15 March 2015

ios - trying to customise annotation pin -


I am trying to add the callout accessory to some existing code. Here is my annotation main code:

  OTNVenueAnnotation * annotation = [[OTNVenueAnnotation alloc] init]; Annoteshnkkoardinet = Kallokashnkordinte2DMake (Lokeshnkltitude, Lokeshnklongitude); Annotation.title = [[site objectForcae: @ "name"] uppercase string]; Annotation Right = site; MKPinAnnotationView * customPinView = [[Mk pin annotation willow alloc] Init with annotation: annotation]; UIButton * rightButton = [system with UIButton Button: UIButtonTypeDetailDisclosure]; [Right button addTarget: Self-action: @selector (for ShowDetailsControlEvents: UIControlEventTouchUpInside]; CustomPinView.rightCalloutAccessoryView = Written Button [Self.mapview add annotation: annotation];   

The build error is: MKPinAnnotationView 'is a visible interface selector' initWithNnotation: '

Method name InitWithNnotation: reuseIdentifier:

You need to start your annotation view with NSSTING as the initial recognition logic. < Pre> MKPinAnnotationView * customPinView = [[MKPinAnnotationView alloc] initWithNnotation: annotation user again: @ "identifier"];

No comments:

Post a Comment