У меня есть UIActionsheet.Мне нужно изменить цвет кнопок в нем.
-(IBAction)showActionSheet:(id)sender {
UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:@"Destructive Button" otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];
popupQuery.actionSheetStyle = UIActionSheetStyleBlackOpaque;
[popupQuery showInView:self.view];
[popupQuery release];
}
Таблица UIActions отображается как это красная кнопка, за которой следуют 2 серые кнопки и черная кнопка отмены.Мне нужно, чтобы первые 3 кнопки были серыми, а последняя кнопка - черной.Как я могу сделать это программно?