ios – 防止UIPopover上的动画被外部点击解散?

ios – 防止UIPopover上的动画被外部点击解散?,第1张

概述当用户点击d出窗口外,解雇是动画的.有没有办法将解雇动画设置为NO?我在谷歌上广泛搜索和搜索. UIPopover状态的文档: When displayed, taps outside of the popover window cause the popover to be dismissed automatically. To allow the user to interact with t 当用户点击d出窗口外,解雇是动画的.有没有办法将解雇动画设置为NO?我在谷歌上广泛搜索和搜索.

UIPopover状态的文档:

When displayed,taps outsIDe of the popover window cause the popover
to be dismissed automatically. To allow the user to interact with the
specifIEd vIEws and not dismiss the popover,you can assign one or
more vIEws to the passthroughVIEws property. Taps insIDe the popover
window do not automatically cause the popover to be dismissed. Your
vIEw and vIEw controller code must handle actions and events insIDe
the popover explicitly and call the dismisspopoverAnimated: method as
needed.

我用NO实现了dismisspopoverAnimated:方法,当我调用该方法时,它适用于所有情况.

问题是当用户点击popover外部解散时,dismisspopoverAnimated:不会被调用.

taps outsIDe of the popover window cause the popover
to be dismissed automatically.

这种解雇是动画的.似乎没有办法控制解雇.我正在使用popover为绘图应用程序呈现颜色选择器.在d出窗口完成动画制作之前,不会注册要绘制的点击.这会产生明显的延迟,因为您无法立即绘制但必须等待动画完成.

我认为 – (BOol)popoverControllerShoulddismisspopover 总结

以上是内存溢出为你收集整理的ios – 防止UIPopover上的动画被外部点击解散?全部内容,希望文章能够帮你解决ios – 防止UIPopover上的动画被外部点击解散?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1075808.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存