https://stackoverflow.com/questions/2579025
题
我正在创建一个需要一个的iPad应用程序 UIPopoverController 像这样(我的意思是,有按钮):
UIPopoverController
我尝试使用 UIViewController 但这给了我一个巨大的弹出窗口,并带有白色背景。
UIViewController
谁能向我解释如何制作?我找不到任何文档或示例代码。谢谢。
解决方案
你需要 -[UIActionSheet showFromBarButtonItem:animated:] 而不是uipopovercontroller。
-[UIActionSheet showFromBarButtonItem:animated:]