objective c - In iOS 7, how do I change the color of the options in my UIActionSheet? -
i use green "action color" throughout app, , want options in uiactionsheets green well, consistency. how can change colour of uiactionsheet options green blue?
utilize willpresentactionsheet
delegate method of uiactionsheet
change action sheet button color.
- (void)willpresentactionsheet:(uiactionsheet *)actionsheet { (uiview *subview in actionsheet.subviews) { if ([subview iskindofclass:[uibutton class]]) { uibutton *button = (uibutton *)subview; button.titlelabel.textcolor = [uicolor greencolor]; } } }
Comments
Post a Comment