如何删除iPad的Popover箭头及其框架边框

如何删除iPad的Popover箭头及其框架边框

本文介绍了如何删除iPad的Popover箭头及其框架边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上这些是两个问题:

Basically these are two questions:


  1. 如何删除iPad的弹出视图的箭头?

  1. How to remove iPad's popover view's arrow?

有没有办法删除popover的黑色边框?

is there any way to remove popover's black border?

如果不可能,你能在iPad上建议一种在屏幕顶部显示UIView(popover)而没有箭头和边框(可能是浅透明边框)的方法吗?非常感谢。

If not possible, can you suggest a way in iPad to display an UIView (popover) at the top of screen without arrow and border (might be light transparent border), please? thanks a lot.

我不认为ModalView是一个合适的选项,因为它无法调整大小并且无法通过单击外部模态视图来解除。

And I don't think ModalView is a proper option, as it cannot be resized and cannot be dismissed by clicking outside modal view.

推荐答案

当调用-presentPopoverFromBarButtonItem:allowedArrowDirections:时,将0作为第二个参数传递,而不是任何常量。这没有记录,但Apple在使用此设置时允许App Store中的应用程序。

When calling -presentPopoverFromBarButtonItem:permittedArrowDirections:, pass 0 as the second parameter, rather than any of the constants. This isn't documented, but Apple is allowing apps in the App Store when using this setting.

这篇关于如何删除iPad的Popover箭头及其框架边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 14:14