3
我的UIActionSheet
显示时是透明的。我该如何改变这一点?这里的问题是什么样子的截图:为什么UIActionSheet在展示时透明?
代码:
- (IBAction)btnTakePicture_Clicked:(id)sender
{
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Select Image from..." delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Camera", @"Image Gallary", nil];
actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
actionSheet.alpha=0.90;
actionSheet.tag = 1;
[actionSheet showInView:self.view];
UIButton *btn = (UIButton *)sender;
intButton = btn.tag;
}
如果不包括用来生成操作的代码表,这是不可能回答。 –
@GabrielePetronella好的,添加了代码。谢谢!我认为这可能是一个普遍的问题。 – user2588945