Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/114.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 在显示的UIViewController下面的UIViewController上允许交互_Ios_Ios7_Uiviewcontroller_Uimodalpresentationstyle - Fatal编程技术网

Ios 在显示的UIViewController下面的UIViewController上允许交互

Ios 在显示的UIViewController下面的UIViewController上允许交互,ios,ios7,uiviewcontroller,uimodalpresentationstyle,Ios,Ios7,Uiviewcontroller,Uimodalpresentationstyle,我用UIModalPresentationCustom呈现样式呈现UIViewController,呈现的UIViewController的主视图背景色设置为clearColor。我需要允许与下面的UIViewController进行交互。这可能吗 我这样做的原因是,我有一个地图,需要一直坐在一个呈现的UINavigationController下面,我需要允许与它交互。显示的视图可能有在其上方滚动的内容,此时我希望交互性停止,默认情况下它应该停止交互性。您可以通过干扰hitTest来完成类似的

我用UIModalPresentationCustom呈现样式呈现UIViewController,呈现的UIViewController的主视图背景色设置为clearColor。我需要允许与下面的UIViewController进行交互。这可能吗


我这样做的原因是,我有一个地图,需要一直坐在一个呈现的UINavigationController下面,我需要允许与它交互。显示的视图可能有在其上方滚动的内容,此时我希望交互性停止,默认情况下它应该停止交互性。

您可以通过干扰hitTest来完成类似的操作,尽管我不相信这一点


看起来,带有“passthroughview”的府绸可能会更好地满足您的需求。如果无法处理箭头,则始终可以设置自定义UIPopoOverBackgroundView。

这是不可能的,因为这会导致太多的不一致性:考虑其他接口。我记得当我第一次尝试你描述的界面时,我担心可能会与后视图控制器的视图进行交互,我很高兴事实并非如此。是的,我开始同意。太多的事情需要注意。我们已经为此设计了另一种方法!干杯。谢谢,我也想过要买一件府绸,但我们真的需要这是一个UINavigationController的外观和感觉。你可以在府绸里装一个UINavigationController,但我理解你的痛苦。也许只是使用视图控制器包含,而不是表示。