Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/110.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 具有可达性的旋转网络图标_Ios_Networking_Reachability - Fatal编程技术网

Ios 具有可达性的旋转网络图标

Ios 具有可达性的旋转网络图标,ios,networking,reachability,Ios,Networking,Reachability,我的问题显然是关于可达性类的。我在ipad应用程序中使用它,但实际上并不需要一个固定的连接,只需要偶尔将xml发送到服务器。我注意到左上角的小网络指示器一直在旋转。可达性导致了它吗?我的appDelegate类正在侦听连接,但我担心额外的电池使用。有什么想法吗 didfinishlaunchingwithoptions { [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(checkNetwo

我的问题显然是关于可达性类的。我在ipad应用程序中使用它,但实际上并不需要一个固定的连接,只需要偶尔将xml发送到服务器。我注意到左上角的小网络指示器一直在旋转。可达性导致了它吗?我的appDelegate类正在侦听连接,但我担心额外的电池使用。有什么想法吗

didfinishlaunchingwithoptions {

  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(checkNetworkStatus:) name:kReachabilityChangedNotification object:nil];

    hostReachable = [Reachability reachabilityWithHostName: @"www.apple.com"];
    [hostReachable startNotifier];

}

可达性没有显示/隐藏networkActivityIndicator的任何引用,因此它必须来自项目中的其他地方。使用Xcode的搜索来搜索整个项目