For example, could you have two delegats for MKMapViewDelegate and have them both implement – mapView:sender:viewForAnnotation:annotation?
For example, could you have two delegats for MKMapViewDelegate and have them both implement
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
MKMapViewcan only have one delegate at a time. Of course you can switch the delegate when you need to, or you could have the delegate call the other object that you intend to use as a delegate.But I think this smells of a bad architecture. Ask yourself: Why do you even want more than one delegate? You very probably don’t.