iPad - How can I make my UIActionSheet look like the thin one in safari?

◇◆丶佛笑我妖孽 提交于 2019-12-22 18:58:07

问题


The above UIActionSheet is thinner than the normal one. I took the screenshot from Safari when I try to bookmark some website.

Mine or the default UIActionSheet in iPad looks like the following. It is thicker than the one in Safari, especially the border.

How can I make my own UIActionSheet look like the one in Safari? Do I need to do any particular customisation or I can use some kinds of parameters for UIActionSheet?

thanks


回答1:


The instance method:

showFromBarButtonItem:animated:

Documentation:

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIActionSheet_Class/Reference/Reference.html

On iPad, it will display the UIActionSheet inside a Popover.



来源:https://stackoverflow.com/questions/4016558/ipad-how-can-i-make-my-uiactionsheet-look-like-the-thin-one-in-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!