Merge pull request #1274 from mapbox/1271-alloc-init

Changing "new" to "alloc init"
This commit is contained in:
Brad Leege
2015-04-15 10:16:08 -05:00

View File

@@ -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) {