我有一张显示所有餐厅对象的map。我正在尝试将餐厅对象传递给map注释,以便我可以显示包含所有餐厅信息的详细View。经过研究,我试图创建一个符合协议(protocol)的类,但是我无法在map中放置注释。这是我的代码:RestaurantAnnotationClass.h(自定义类):#import#import#import"Restaurant.h"staticNSString*restaurantAnnotationIdentifier=@"restaurantAnnotationIdentifier";@interfaceRestaurantAnnotation:NSObje