Reputation: 61
i wanted to change buttons color in action sheet so i wrote this code
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet {
for (UIView *_currentView in actionSheet.subviews) {
if ([_currentView isKindOfClass:[UIButton class]]) {
UIButton *button = (UIButton *)_currentView;
button.titleLabel.textColor = [UIColor darkGrayColor];
NSLog(@"%@",@"ahmed");
}
}
}
but nothing happen although i made delegate to self and called UIActionSheetDelegate . although i have 6 buttons ,i see as this function wasn't be called at all what is the problem?????
Upvotes: 0
Views: 125