Inherits from NSObject
Conforms to CCHMapClusterControllerDelegate
MKMapViewDelegate
UIPopoverControllerDelegate
Declared in MMRestaurantMapDelegate.h
MMRestaurantMapDelegate.m

Overview

Implements the MMMapViewDelegate protocol provided by Apple. We implement the delegate in order to provide custom pins for the restaurants.

Properties

containerView

Outlet to the popover view to detect touches.

@property (nonatomic, strong) UIView *containerView

Declared In

MMRestaurantMapDelegate.h

mapPopOverViewController

Reference to the popover controller

@property (nonatomic, strong) MMMapPopOverViewController *mapPopOverViewController

Declared In

MMRestaurantMapDelegate.h

mapView

The map view that corresponds to the map view

@property (nonatomic, weak) MKMapView *mapView

Declared In

MMRestaurantMapDelegate.h

parentSplitViewController

reference to the navigation controller in the map view

@property (nonatomic, strong) UISplitViewController *parentSplitViewController

Declared In

MMRestaurantMapDelegate.h

popOverController

Popover view controller

@property (nonatomic, strong) UIPopoverController *popOverController

Declared In

MMRestaurantMapDelegate.h

Instance Methods

createPopOverView:

Fills the popover view with the information needed.

- (void)createPopOverView:(MMMerchant *)merchant

Declared In

MMRestaurantMapDelegate.m

mapClusterController:subtitleForMapClusterAnnotation:

Returns the subtitle for a cluster annotation.

- (NSString *)mapClusterController:(CCHMapClusterController *)mapClusterController subtitleForMapClusterAnnotation:(CCHMapClusterAnnotation *)mapClusterAnnotation

Parameters

mapClusterController

The cluster controller sending the message.

mapClusterAnnotation

The cluster annotation.

Declared In

CCHMapClusterControllerDelegate.h

mapClusterController:titleForMapClusterAnnotation:

Returns the title for a cluster annotation.

- (NSString *)mapClusterController:(CCHMapClusterController *)mapClusterController titleForMapClusterAnnotation:(CCHMapClusterAnnotation *)mapClusterAnnotation

Parameters

mapClusterController

The cluster controller sending the message.

mapClusterAnnotation

The cluster annotation.

Declared In

CCHMapClusterControllerDelegate.h

mapClusterController:willReuseMapClusterAnnotation:

Called before the given cluster annotation is reused for a cell.

- (void)mapClusterController:(CCHMapClusterController *)mapClusterController willReuseMapClusterAnnotation:(CCHMapClusterAnnotation *)mapClusterAnnotation

Parameters

mapClusterController

The cluster controller sending the message.

mapClusterAnnotation

The cluster annotation that’s reused. Its properties are updated to reflect the current state.

Declared In

CCHMapClusterControllerDelegate.h