Merge pull request #1274 from mapbox/1271-alloc-init
Changing "new" to "alloc init"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user