내 응용 프로그램에서 셀룰러 데이터 사용이 특정 응용 프로그램에 대해 켜져 있는지 확인하고 검사 결과에 따라 제대로 작동 하는지를 감지 할 수 있기를 원합니다.iOS : 앱에서 셀룰러 데이터 사용이 설정되어 있는지 확인하는 방법은 무엇인가요?
이 프로그래밍 방식 검사를 수행 할 수있는 방법이 있습니까?
Reachability *reachability = [Reachability reachabilityForInternetConnection];
NetworkStatus status = [reachability currentReachabilityStatus];
if (status == ReachableViaWWAN)
{
NSLog(@"Cellular data");
}
이 프로젝트는 조금 오래, 당신이해야 할 수도 있습니다 : 다음 링크
** 답변 ** : 문서화 된 [Reachability framework from Apple] (https://developer.apple.com/library/ios/samplecode/reachability/introduction/intro.html)을 사용하십시오. – esqew