Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/95.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.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_Xcode_Events_Notifications_Volume - Fatal编程技术网

Ios 音量按钮:通知问题

Ios 音量按钮:通知问题,ios,xcode,events,notifications,volume,Ios,Xcode,Events,Notifications,Volume,我正面临一个奇怪的问题。 有时,在启动时,我的iOS应用程序会自动检测音量按钮上的事件 这个bogue真的很尴尬,因为我使用库将一个操作与音量按钮关联 我已在我的应用程序代码中搜索,但未找到任何可能触发此事件的行 如何跟踪此问题?检查/Start[self.volumeButtonHandler startHandler:YES];//Stop[self.volumeButtonHandler stopHandler]@阿披舍克维玛我查过JPSVolumeButonHandler代码。在初始化时

我正面临一个奇怪的问题。 有时,在启动时,我的iOS应用程序会自动检测音量按钮上的事件

这个bogue真的很尴尬,因为我使用库将一个操作与音量按钮关联

我已在我的应用程序代码中搜索,但未找到任何可能触发此事件的行


如何跟踪此问题?

检查/Start[self.volumeButtonHandler startHandler:YES];//Stop[self.volumeButtonHandler stopHandler]@阿披舍克维玛我查过JPSVolumeButonHandler代码。在初始化时,它会调整卷以避免出现最大或最小状态(因为在此状态下,它将无法检测到卷按钮上的任何事件)。但当调整时,它会自动触发。。。
self.volumeButtonHandler = [JPSVolumeButtonHandler volumeButtonHandlerWithUpBlock:^{ 
     NSLog(@"Volume Up Button Pressed");
} downBlock:^{
     NSLog(@"Volume Down Button Pressed"); 
     [self snapStillImage];
}];