我想知道如何从屏幕底部显示uiactionsheet。我已经尝试使用showInView:方法和MainView作为视图来显示它,但是我得到了MainView Undeclared错误。 最佳答案 您需要参考控制器视图:[actionSheet showInView:self.viewController.view]