工具栏中的Safari风格的UIPopoverController [英] Safari-style UIPopoverController from Toolbar
本文介绍了工具栏中的Safari风格的UIPopoverController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个需要 UIPopoverController
的iPad应用程序,就像这个(我的意思是,带按钮):
I'm creating an iPad application which needs a UIPopoverController
like this one (I mean, with buttons):
抱歉http://img683.imageshack.us/img683/5895/schermafbeelding2010040d.png
我尝试使用 UIViewController
但是它给了我一个带有白色背景的巨大弹出窗口。
I tried using a UIViewController
but it gives me an enormous popup with a white background.
谁能解释我怎么做一个?我找不到任何文档或示例代码。谢谢。
Can anyone explain me how to make one? I cannot find any documentation or example code. Thanks.
推荐答案
你需要 - [UIActionSheet showFromBarButtonItem:animated:]
而不是UIPopoverController。
You need -[UIActionSheet showFromBarButtonItem:animated:]
instead of a UIPopoverController.
这篇关于工具栏中的Safari风格的UIPopoverController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文