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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -