ios - MKPointAnnotation tag -


simple question: seems cannot find tag attribute mkpointannotation class. return error;

mkpointannotation *annotation = [[hciannotationviewcontroller alloc]                                      initwithhouse:house]; 

the following returns error (property tag not found ob object of type "mkpointannotation"

nslog(@"%d",annotation.tag); 

my question is, if im not allowed set tag, how supposed detect annotation clicked.

the other approaches followed

setting tag mkannotationview, in found out last annotation when added doesn't call viewforannotation (might because i'm adding around 1000 mkpointannotations small map, calls when comes view.).

please tell me how resolve this?

since mkpointannotation not subclass of uiview, has not property called tag. bu have property coordinate. assume have different coordinates of annotations. can detect one.

you need compare coordinates.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -