Required method in MKMapViewDelegate Protocol


#1

For this chapter’s project, the WhereamiAppDelegate object conforms to the MKMapViewDelegate protocol. From my understanding of Objective-C, a delegate needs to implement all required methods of the protocol that it’s conforming to. So I checked the Apple IOS API Reference for the protocol MKMapViewDelegate and this protocol does list a required method which WhereamiAppDelegate does not implement, the method is

Why didn’t the compiler complain about this?

Thanks in advance!


#2

I had the same question. I think the documentation might be wrong. I looked in MKMapView.h and it was under @optional


#3

Yittrium is absolutely correct. MKMapViewDelegate has no required methods, according to the header file.