情况如下:我有一个 MainView 类(它是一个 UIViewController)并从中调用一个 UIActionSheetDelegate 类。我想使用presentViewController方法,但是下面的代码不起作用(目前在ActionSheet类中调用):
[self presentViewController:myViewController animated:YES];
对于我应该从哪里调用该方法(MainView 或 ActionSheetDelegate),我有点困惑。
提前致谢。