Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
#877 - Removing MGLMapViewDelegate to prevent notifications display o…
Browse files Browse the repository at this point in the history
…verload
  • Loading branch information
bleege committed Feb 19, 2015
1 parent 7740ce8 commit f3c69e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion ios/app/MBXViewController.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import <UIKit/UIKit.h>
#import <mbgl/ios/MGLMapView.h>

@interface MBXViewController : UIViewController <MGLMapViewDelegate>
@interface MBXViewController : UIViewController

@end
20 changes: 0 additions & 20 deletions ios/app/MBXViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ - (void)viewDidLoad
self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[self.view addSubview:self.mapView];

[self.mapView setDelegate:self];

self.mapView.viewControllerForLayoutGuides = self;

self.view.tintColor = kTintColor;
Expand Down Expand Up @@ -91,24 +89,6 @@ - (void)viewDidLoad
[self restoreState:nil];
}

#pragma mark MGLMapViewDelegate

- (void)mapView:(MGLMapView *)mapView regionWillChangeAnimated:(BOOL)animated
{
NSLog(@"regionWillChangeAnimated with mapView = %@, and animated = %d", mapView, animated);
}

- (void)mapViewRegionIsChanging:(MGLMapView *)mapView
{
NSLog(@"mapViewRegionIsChanging with mapView = %@", mapView);
}

- (void)mapView:(MGLMapView *)mapView regionDidChangeAnimated:(BOOL)animated
{
NSLog(@"regionDidChangeAnimated with mapView = %@, and animated = %d", mapView, animated);
}


#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"

Expand Down

0 comments on commit f3c69e7

Please sign in to comment.