简体   繁体   English

是否可以使iPad显示正常的操作表而没有弹出窗口?

[英]Is it possible to make iPad show normal action sheet without popover?

When I want to show an action sheet in my app I show UIAlertController with preffered style .ActionSheet . 当我想在我的应用程序中显示操作表时,我将显示具有UIAlertController样式.ActionSheet However when running on iPad it is not shown as an action sheet but as a popover. 但是,在iPad上运行时,它不会显示为操作表,而是显示为弹出窗口。 And this is not what I need. 这不是我所需要的。 I would like to still show normal action sheet. 我仍然想显示正常的操作表。 And I have a few questions regarding this: 我对此有一些疑问:

1) Is there a way to force iPad show an action sheet? 1)有没有一种方法可以强迫iPad显示操作表? 2) If not, then maybe there's a library which does that? 2)如果没有,那么也许有一个图书馆在做那个? 3) If there's no such library and I have to write my own custom implementation of an action sheet then will Apple reject me for making iPad show it instead of a popover? 3)如果没有这样的库,而我必须编写自己的自定义动作表实现,那么Apple会拒绝我让iPad显示它而不是弹出窗口吗?

  1. You can't change this. 您无法更改。
  2. https://github.com/ianb821/IBActionSheet https://github.com/ianb821/IBActionSheet
  3. If you want to implement custom implementation by your own then you can do it. 如果您想自己实现自定义实现,则可以这样做。 Apple will not reject this. 苹果不会拒绝这一点。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM