In this project, there are two map pins/annotations. When one is clicked on, a popup (separate xib file) pops up and will eventually display information (UILabels) about the pin you clicked on.
The issue I am having lies in the fact that I have multiple pins. I need to make my text in the xib file change based upon which pin was clicked on.
I was guessing that I could make this work using an if/else statement (If pinA is clicked, the display this information). Unfortunately, I have no idea what type of code is needed to perform this operation (if such code actually exists).
Another iOS programmer at my work suggested something involving tags, but I don't have enough experience with iOS/XCode to plop out the code based on his explanation (and I don't want take up too much of his time with this; he has his own work to do).
I have attached a file so that anyone can view my work as a whole. If you have any pointers, I would much appreciate it.
The issue I am having lies in the fact that I have multiple pins. I need to make my text in the xib file change based upon which pin was clicked on.
I was guessing that I could make this work using an if/else statement (If pinA is clicked, the display this information). Unfortunately, I have no idea what type of code is needed to perform this operation (if such code actually exists).
Another iOS programmer at my work suggested something involving tags, but I don't have enough experience with iOS/XCode to plop out the code based on his explanation (and I don't want take up too much of his time with this; he has his own work to do).
I have attached a file so that anyone can view my work as a whole. If you have any pointers, I would much appreciate it.