add id to pin annotation in objective c to load detailview
问题 I have a mapview controller which shows pins from an array of business objects I have created (each business has a method to get the title and subtitle of the pin). I have added a disclosure button to each pin annotation which works correctly, but I am not sure how to pass a variable to the detail view which is to be loaded from the disclosure button, and show all the details for that particular business. I add my businesses to the array like this (in viewWillAppear)... // fetch model data