0

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

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];

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

4

1 回答 1

1

请参考帖子:iPhone 开发:如何为 UIActionSheet 创建彩色或半透明背景?

这对你很有用。

吉姆。

于 2010-05-05T12:23:29.137 回答