Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/25.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版本(7,8,9)上使用Popover_Ios_Objective C_Ipad_Ios9_Uipopovercontroller - Fatal编程技术网

在不同iOS版本(7,8,9)上使用Popover

在不同iOS版本(7,8,9)上使用Popover,ios,objective-c,ipad,ios9,uipopovercontroller,Ios,Objective C,Ipad,Ios9,Uipopovercontroller,我有一个支持三个iOS版本的应用程序,即。iOS 7,8,9。在iOS 7,8中,UIPopoverController用于在popover中显示视图 尽管在iOS 8中引入了PopoverPresentationController,但UIPopOverController在iOS 8之前运行良好 现在,虽然支持iOS9,但UIPopoverController在全屏显示视图时无法工作 所以使用了PopoverPresentationController,但现在应用程序是使用iOS 9.2 S

我有一个支持三个iOS版本的应用程序,即。iOS 7,8,9。在iOS 7,8中,UIPopoverController用于在popover中显示视图

尽管在iOS 8中引入了PopoverPresentationController,但UIPopOverController在iOS 8之前运行良好

现在,虽然支持iOS9,但UIPopoverController在全屏显示视图时无法工作

所以使用了PopoverPresentationController,但现在应用程序是使用iOS 9.2 SDK构建的,由于使用了不推荐的UIPopoverController,所以在iOS 7,8中popover都会全屏显示

我已经将iOS 8的方法从UIPopoverController改为PopoverPresentationController,但在iOS 7中,popover仍然全屏显示

所以简单地说,我的问题是在应用程序构建中使用IOS9.2SDK在popover中显示视图,但支持IOS7,8,9设备


任何帮助都将不胜感激。

检查iOS版本并使用
UIPopoverController
查找低于iOS 8的版本是的,我在iOS 7上使用过UIPopOvercontorler,但当我使用iOS 9.2 SDK编译应用程序时,popover会全屏显示。如果应用程序使用iOS 9.1或更早版本的SDK编译,popover工作正常。