我在我的应用程序中添加了一个操作表。我的应用是基于标签栏的应用。 我已经以这种方式操作表警告?
actionSheet = [[UIActionSheet alloc] initWithTitle:nil
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Take photo",@"Use existing photo",nil];
actionSheet.actionSheetStyle = UIBarStyleBlackTranslucent;
[actionSheet showFromTabBar:self.view];
添加它。但是它显示警告:
我如何可以将其删除。与此同时,我在显示操作表的标签中。
如果你想从标签栏显示它,那么你必须通过标签栏引用,而不是UIView(self.view)。因此它说不兼容。 – 2011-05-30 08:18:57
我该如何做到这一点? – 2011-05-30 08:30:06