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上的动画被外部点击解散?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)