Objective c 使用UIActionSheet类型的表达式初始化TaggedUIActionAheet的指针类型不兼容

Objective c 使用UIActionSheet类型的表达式初始化TaggedUIActionAheet的指针类型不兼容,objective-c,xcode,uiactionsheet,Objective C,Xcode,Uiactionsheet,当我运行此命令时: TaggedUIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:@"Save to photos",@"Email",nil];

当我运行此命令时:

TaggedUIActionSheet *sheet = [[UIActionSheet alloc] 
        initWithTitle:nil
        delegate:self 
        cancelButtonTitle:@"Cancel" 
        destructiveButtonTitle:@"Delete" 
        otherButtonTitles:@"Save to photos",@"Email",nil];
我得到以下错误:


不兼容的指针类型使用UIActionSheet类型的表达式初始化TaggedUIActionAheet

在第一行中发现错误:

TaggedUIActionSheet *sheet = [[UIActionSheet alloc]
应该是:

TaggedUIActionSheet *sheet = [[TaggedUIActionSheet alloc] 

在第一行中找出错误:

TaggedUIActionSheet *sheet = [[UIActionSheet alloc]
应该是:

TaggedUIActionSheet *sheet = [[TaggedUIActionSheet alloc] 
请尝试以下操作:

 UIActionSheet *Actionsheet =[[UIActionSheet alloc]initWithTitle:title delegate:delegate cancelButtonTitle:Canclebutton destructiveButtonTitle:destructivebutton otherButtonTitles:nil, nil];

[Actionsheet showInView:self.view];

-(void)Click_Button:(UIButton*)sender
{
    [self ShowActionsheet:@"Do u Want to Delete This Record!!!" Delegate:self canclebutton:@"Cancle" Destructivebutton:@"Yes"];
}
请尝试以下操作:

 UIActionSheet *Actionsheet =[[UIActionSheet alloc]initWithTitle:title delegate:delegate cancelButtonTitle:Canclebutton destructiveButtonTitle:destructivebutton otherButtonTitles:nil, nil];

[Actionsheet showInView:self.view];

-(void)Click_Button:(UIButton*)sender
{
    [self ShowActionsheet:@"Do u Want to Delete This Record!!!" Delegate:self canclebutton:@"Cancle" Destructivebutton:@"Yes"];
}