self.cellularData = [[CTCellularData alloc] init];
CTCellularDataRestrictedState state = self.cellularData.restrictedState;
注意:初始化马上获取可能得到状态为kCTCellularDataUnknow,所以最好延迟获取,cellularData对象不要每次创建新的。
弹窗期间 :kCTCellularDataRestricted
Only WLAN: kCTCellularDataRestricted
OFF: kCTCellularDataRestricted
WLAN & Cellular: notRestricted