Madan Mohan
Madan Mohan

Reputation: 8810

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.

Upvotes: 0

Views: 7641

Answers (1)

Jim
Jim

Reputation: 4719

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

That will be useful for you.

Jim.

Upvotes: 1

Related Questions