如何在iPhone中以编程方式检测EDGEnetworking或不良networking?
我需要检测iPhone的EDGEnetworking和坏的networking。
1)如何检测不良networking ?
2)能分开检测EDGEnetworking吗?
3)如何获得networking的优势?
请给出一些关于这些问题的答案。 提前致谢。
在iOS7上,你可以!
http://www.objc.io/issue-5/iOS7-hidden-gems-and-workarounds.html
CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new]; NSLog(@"Current Radio Access Technology: %@", telephonyInfo.currentRadioAccessTechnology); [NSNotificationCenter.defaultCenter addObserverForName:CTRadioAccessTechnologyDidChangeNotification object:nil queue:nil usingBlock:^(NSNotification *note) { NSLog(@"New Radio Access Technology: %@", telephonyInfo.currentRadioAccessTechnology); }];