显示UIActionSheet [英] Showing a UIActionSheet

查看:97
本文介绍了显示UIActionSheet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何从屏幕底部显示UIActionSheet。我已经尝试使用 showInView:方法和 MainView 作为显示它的视图,但我得到了 MainView Undeclared 错误。

I was wondering how to show a UIActionSheet from the bottom of the screen. I have tried using the showInView: method with MainView as the view to show it in but I get the MainView Undeclared error.

推荐答案

您需要引用控制器视图:

You need to reference the controllers view:

[actionSheet showInView:self.viewController.view]

这篇关于显示UIActionSheet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆