uikit - iPhone development: How to create colored or translucent background for UIActionSheet? -
When you try to delete a note in the notes application of the iPhone, a UIEXShete pops up when the sheet is transparent (But not black transparent). How is this achieved? Is it possible to make the background of UIActionSheet a certain color?
I generally apply the following delegate method:
- (Zero) Will Project Action Sheet: (UIEXSAT *) Actions Sheet
In this case, I use an extended PNG as a backdrop to make only one sample:
- (void) HogpronsectionActionShot: (UIACSAT *) Actions sheet {UIImage * theImage = [UIImage imageNamed: @ "detail_menu_bg.png"]; IIMAG = [IIMeges Strenuous Image with Left Cap Wideth: 32 Top Capethit: 32]; CGSize theSize = actionSheet.frame.size; // Drag the background image and change the layer contents UIGraphicsBeginImageContext (theSize); [Image DrawRector: CGRactMake (0, 0, The Seas., Wide, The Seas High.)]; TheImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); [[Action Sheet Layer] Set Content: (ID) The Eyes CGIJ]]; }
And this is the result:
Comments
Post a Comment