操作表警告?

| 我在我的应用程序中添加了一个操作表。我的应用程序是基于标签栏的应用程序。 我以这种方式添加了
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];
但是它显示警告: 我该如何删除它。同时,我在要显示操作表的选项卡中。     
已邀请:
        如果您使用的是Tabbar控制器,则使用像这样
[actionSheet showFromTabBar:(UITabBar *)[appDelegate.tabBarController view]];
    
        
[actionSheet showFromTabBar:self.tabBarController.tabBar];
试试这个,可能对您有帮助。     
        如果您在标签页中,应该不是
[actionSheet showFromTabBar:self.tabBarController.tabBar];
吗?     

要回复问题请先登录注册