Retrieving information from the array that mounted the map (MapKit)
问题 I have an array with several dictionaries. In every dictionary I have some information. I want to add a point on the map for each item inside the array. I do not have anything but didSelectForAnnotation method, how do I get inside the array as certain information of that object? In a table I would use the indexPath but an annotation does not have that indexPath. Is there a solution?? 回答1: If you want to set custom information with you MKPointAnnotation then you need to subclass it and create