Search code examples
objective-ciosuiactionsheet

How to set the back ground color to the UIActionSheet in iPhone?


I need to change the back ground colour of the action sheet,

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

please tell how to set the back ground color for action sheet.


Solution

  • Please refer the post : iPhone development: How to create colored or translucent background for UIActionSheet?

    That will be useful for you.

    Jim.