diff options
-rw-r--r-- | platform/ios/MGLMapboxEvents.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index 2150c1e166..605c6a3fa0 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -571,7 +571,7 @@ NSString *const MGLEventGestureRotateStart = @"Rotation"; // Can be called from any thread. // - (NSString *) getCurrentCellularNetworkConnectionType { - CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new]; + CTTelephonyNetworkInfo *telephonyInfo = [[CTTelephonyNetworkInfo alloc] init]; NSString *radioTech = telephonyInfo.currentRadioAccessTechnology; if (radioTech == nil) { |