Iphone 如何更改UIActionsheet中的按钮

Iphone 如何更改UIActionsheet中的按钮,iphone,Iphone,我有一张行动表。我需要改变里面按钮的颜色 -(IBAction)showActionSheet:(id)sender { UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:@"Destructive Button" otherButtonTitle

我有一张行动表。我需要改变里面按钮的颜色

-(IBAction)showActionSheet:(id)sender {

    UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:@"Destructive Button" otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];

    popupQuery.actionSheetStyle = UIActionSheetStyleBlackOpaque;

    [popupQuery showInView:self.view];

    [popupQuery release];

}

UIActionsheet显示为。红色按钮后接2个灰色按钮和黑色取消按钮。我需要前3个按钮是灰色的,最后一个按钮是黑色的。如何通过编程实现这一点?

破坏性按钮会自动设置为红色。创建操作表时,将破坏性按钮标题设置为nil,并仅对3个灰色按钮使用
otherbuttonitles
参数

破坏性按钮自动设置为红色。创建操作表时,将破坏性按钮标题设置为nil,并仅对3个灰色按钮使用
otherbuttonitles
参数

查看这个库:那么,没有其他方法可以在不添加库的情况下实现这一点吗?如果我包含这个库,苹果会接受我的应用程序吗?看看这个库:那么,没有其他方法可以做到这一点而不添加库吗?如果我加入这个库,苹果会接受我的应用吗?