summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2017-09-29 14:53:01 -0400
committerJason Wray <jason@mapbox.com>2017-09-29 14:53:01 -0400
commit9d743134378b569188a2d2a69a0d193f3e66c342 (patch)
tree403c4571aff6628b838027ff58d777dbb11689f7
parentb665e90bd217215007682800d47ee8ea12a31945 (diff)
downloadqtlocation-mapboxgl-9d743134378b569188a2d2a69a0d193f3e66c342.tar.gz
Add sender to -showAttribution:
-rw-r--r--platform/ios/src/MGLMapView.h2
-rw-r--r--platform/ios/src/MGLMapView.mm4
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/ios/src/MGLMapView.h b/platform/ios/src/MGLMapView.h
index 39c3674931..10d76353a5 100644
--- a/platform/ios/src/MGLMapView.h
+++ b/platform/ios/src/MGLMapView.h
@@ -279,7 +279,7 @@ MGL_EXPORT IB_DESIGNABLE
made available so that it can be assigned to custom attribution button
implementations.
*/
-- (IBAction)showAttribution;
+- (IBAction)showAttribution:(id)sender;
// Support for style classes has been removed. This property always returns an empty array.
@property (nonatomic) NS_ARRAY_OF(NSString *) *styleClasses __attribute__((deprecated("This property is non-functional.")));
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index a03a5ad357..90d2796bbc 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -503,7 +503,7 @@ public:
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
if ([_attributionButton respondsToSelector:@selector(accessibilityIgnoresInvertColors)]) { _attributionButton.accessibilityIgnoresInvertColors = YES; }
#endif
- [_attributionButton addTarget:self action:@selector(showAttribution) forControlEvents:UIControlEventTouchUpInside];
+ [_attributionButton addTarget:self action:@selector(showAttribution:) forControlEvents:UIControlEventTouchUpInside];
_attributionButton.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:_attributionButton];
_attributionButtonConstraints = [NSMutableArray array];
@@ -2025,7 +2025,7 @@ public:
#pragma mark - Attribution -
-- (void)showAttribution
+- (void)showAttribution:(__unused id)sender
{
NSString *title = NSLocalizedStringWithDefaultValue(@"SDK_NAME", nil, nil, @"Mapbox iOS SDK", @"Action sheet title");
UIAlertController *attributionController = [UIAlertController alertControllerWithTitle:title