Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/119.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
Can';t在iphone6/6+;与iOS8_Ios_Iphone 6_Iphone 6 Plus_Image Stabilization - Fatal编程技术网

Can';t在iphone6/6+;与iOS8

Can';t在iphone6/6+;与iOS8,ios,iphone-6,iphone-6-plus,image-stabilization,Ios,Iphone 6,Iphone 6 Plus,Image Stabilization,好吧,我撞到墙上,真的不知道该怎么办。 我正在写一个相机应用程序。实际上已经完成了。大部分时间都是在斯威夫特上写的。 在应用程序中,我可以选择打开和关闭图像稳定,这应该非常简单。代码如下(stillImageOutput是AVCaptureSillImageOutput): presentMessegePopUp只是一个警报的包装。 其中一个问题是我只有iPhone5S,不能真正调试它。但是通过beta FlightTest在4台6/6+设备上进行测试,所有设备都会出现此弹出窗口。这意味着它们在

好吧,我撞到墙上,真的不知道该怎么办。 我正在写一个相机应用程序。实际上已经完成了。大部分时间都是在斯威夫特上写的。 在应用程序中,我可以选择打开和关闭图像稳定,这应该非常简单。代码如下(stillImageOutput是AVCaptureSillImageOutput):

presentMessegePopUp只是一个警报的包装。 其中一个问题是我只有iPhone5S,不能真正调试它。但是通过beta FlightTest在4台6/6+设备上进行测试,所有设备都会出现此弹出窗口。这意味着它们在“stillImageStabilizationSupported”上变为假。这是当在我的手机上它的工作刚刚好

根据苹果公司的这篇文章,所有高达6+的手机都应该支持它:(光学图像稳定部分)

我试图找出是否有什么东西会干扰这个属性,但到目前为止(周+)我什么也没发现


有人能帮忙吗?

你为什么要用
stillImageOutput
时使用code>,然后在接下来的两次访问中使用
?我觉得如果你知道第一行不是
nil
,你可以合理地确定接下来两行仍然不是
nil
,你是对的。不知怎的忽略了它
 func setStabilisation(state:Bool){
   if self.stillImageOutput!.stillImageStabilizationSupported{
       if state{
           self.stillImageOutput!.automaticallyEnablesStillImageStabilizationWhenAvailable = true
       }
       else{
           self.stillImageOutput!.automaticallyEnablesStillImageStabilizationWhenAvailable = false
       }
   }
   else {presentMessegePopUp("Image stabilisation is not supported")}
}