简体   繁体   English

在 iPad 上的上下文菜单中点击预览不会对全屏视图控制器的演示进行动画处理

[英]Tapping preview in context menu on iPad doesn't animate presentation of full screen view controller

I have a context menu in my app that shows a photo preview above the actions, and tapping the preview presents that view controller full-screen.我的应用程序中有一个上下文菜单,在操作上方显示照片预览,点击预览可全屏显示该视图控制器。 On iPhone, when you tap the preview there's a lovely animation - it bounces into full screen.在 iPhone 上,当您点击预览时,会出现一个可爱的动画 - 它会弹回全屏。 But on iPad, when you tap the preview the context menu dismisses and then the screen appears without any animation.但是在 iPad 上,当您点击预览时,上下文菜单会消失,然后屏幕会出现而没有任何动画。

This is the (new*) default behavior on iPad.这是 iPad 上的(新*)默认行为。 The idea being you can use your own presentation animation.这个想法是您可以使用自己的演示动画。 To get the system "pop" style that's default on iPhone, set the preferredCommitStyle to .pop on the UIContextMenuInteractionCommitAnimating object.要获得 iPhone 上默认的系统“pop”样式,请在UIContextMenuInteractionCommitAnimating对象UIContextMenuInteractionCommitAnimating preferredCommitStyle设置为.pop

*I think it changed in iOS 13.4. *我认为它在 iOS 13.4 中发生了变化。 This change broke the Photos app as well.此更改也破坏了照片应用程序。 😅 😅

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 视图不会在iPad上全屏显示 - View doesn't take up full screen on iPad 将 Controller 演示文稿从页面切换到全屏 - Switch View Controller presentation from Page Sheet to Full Screen Popover 演示控制器 - 视图周围有间距,不适合全宽 - Popover presentation controller - view has spacing around, doesn't fit full width 如何从收藏夹视图单元中对图像进行动画处理,以通过单击将其移动到全屏 - How to animate a image from a collection view cell to move to full screen by tapping on it iOS 13 上下文菜单:如何通过点击预览简单地关闭菜单? - iOS 13 context menu: how to simply dismiss menu by tapping on preview? Tableview 上下文菜单:从行到预览视图控制器的自定义动画 - Tableview context menu: custom animation from row to a preview view controller 我的子视图没有使用视图控制器制作动画 - My subviews doesn't animate with the view controller 在视图 controller 演示文稿期间动画 collectionView 布局 - Animate collectionView layout during view controller presentation UILabel不会通过模式表示视图控制器进行更新 - UILabel doesn't update through modal presentation view controller iPad pro 无法全屏打开我的应用 - iPad pro doesn't open my app in full screen
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM