子视图的特殊颜色和形状?

时间:2013-05-13 14:17:24

标签: ios uiview uicolor

我想显示这样的子视图(当我尝试转发邮件时出现)。 如何选择这种阴影颜色?非常感谢你。

enter image description here

1 个答案:

答案 0 :(得分:4)

实际上这是UIActionSheet,以下是

的代码
UIActionSheet *actionSheet;

 actionSheet = [[UIActionSheet alloc] initWithTitle:@"Choose Option" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles: @"Rispondi",@"Rispondi a tutti",@"inoltra",@"stampa",nil];
 actionSheet.actionSheetStyle = UIActionSheetStyleBlackOpaque;
 [actionSheet showInView:self.view];