我正在定制对话框(UIAlertView),使其从白色变为黑色,
Dark Dialog , no need red baR 如果UI设计适合主题。将对话框设置为黑色后,仍然有白色背景颜色,黑色文本和按钮的蓝色文本你能告诉我锻炼吗?以下是我的工作:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test"
message: [NSString stringWithFormat:@"%@%@%@%@", _labels[87],@". " , _labels[88] , @"?"]
delegate:self
cancelButtonTitle:_labels[89] otherButtonTitles: _labels[0], nil ];
[alert setBackgroundColor:[UIColor blackColor] ];
alert.alpha = 0.8f;
alert.userInteractionEnabled = NO;
alert.tag = 15;
[alert show];