如何在iPhone中为Action Sheet设置背景颜色?

时间:2010-05-05 11:30:37

标签: objective-c ios uiactionsheet

我需要更改操作表的背景颜色,

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@""
                                                             delegate:self 
                                                    cancelButtonTitle:nil 
                                               destructiveButtonTitle:nil
                                                    otherButtonTitles:@"Create Estimate", @"Record Expense",@"Add Credit",@"Delete Customer", @"Cancel", nil];

    actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
    actionSheet.destructiveButtonIndex=3;

    [actionSheet showInView:appDelegate.window]; // show from our table view (pops up in the middle of the table)
    [actionSheet release];

请告诉我如何设置操作表的背景颜色。

1 个答案:

答案 0 :(得分:1)