here is the solution
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet
{
for (UIView* subview in actionSheet.subviews) {
for (UIView *tView in subview.subviews) {
if ([tView isKindOfClass:[UITableView class]]) {
UITableView *actionTableView = (UITableView *)tView;
NSIndexPath *myIP = [NSIndexPath indexPathForRow:5 inSection:0];
UITableViewCell *cell = [actionTableView cellForRowAtIndexPath:myIP];
cell.backgroundColor = [UIColor blackColor];
for (UIView *cells in cell.subviews) {
for (UIView *subCells in cells.subviews) {
if ([subCells isKindOfClass:[UILabel class]]) {
UILabel *cellText = (UILabel *)subCells;
cellText.textColor = [UIColor redColor];
}
}
}
}
}
if ([subview isKindOfClass:[UIButton class]]) {
UIButton *button = (UIButton *)subview;
[button setTitleColor:[UIColor redColor] forState:UIControlStateSelected];
if ([button.titleLabel.text isEqualToString:@"5"]) {
button.selected = true;
[button setBackgroundColor:[UIColor blueColor]];
}
}
}
}