self.cellularData = [[CTCellularData alloc] init];
CTCellularDataRestrictedState state = self.cellularData.restrictedState;
注意:初始化馬上獲取可能得到狀態(tài)為kCTCellularDataUnknow,所以最好延遲獲取贯底,cellularData對(duì)象不要每次創(chuàng)建新的丰辣。
彈窗期間 :kCTCellularDataRestricted
Only WLAN: kCTCellularDataRestricted
OFF: kCTCellularDataRestricted
WLAN & Cellular: notRestricted