首页 > 解决方案 > 使用 iOS 13 modalPresentationStyleAutomatic 拖放图像

问题描述

我在使用新的演示样式自动拖放图像时遇到问题。

这些图像是 UIImageView 的子类,覆盖 func touchesBegan、touchesMoved 和 touchesEnded。我也试过把self.superview?.isUserInteractionEnabled = false里面的触摸开始禁用视图的触摸。

在此处输入图像描述

如果我设置segue.destination.modalPresentationStyle = .fullScreen它可以工作,但我希望自动样式也具有相同的行为。

正常行为:

在此处输入图像描述

任何想法?

标签: swiftiphonedrag-and-dropios13uimodalpresentationstyle

解决方案


推荐阅读