【发布时间】:2011-06-13 14:28:06
【问题描述】:
情况如下:我有一个 MainView 类(它是一个 UIViewController)并从中调用一个 UIActionSheetDelegate 类。我想使用presentViewController方法,但是下面的代码不起作用(目前在ActionSheet类中调用):
[self presentViewController:myViewController animated:YES];
对于我应该从哪里调用方法(MainView 或 ActionSheetDelegate)我有点困惑。
提前致谢。
【问题讨论】:
标签: ios uiviewcontroller uiactionsheet presentmodalviewcontroller