maxkonovalov / MKDropdownMenu

🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs
MIT License
527 stars 83 forks source link

disclosureIndicatorImage Color #11

Closed oduysmara closed 7 years ago

oduysmara commented 7 years ago

how to change color for disclosureIndicatorImage?

maxkonovalov commented 7 years ago

If you want to use the built-in triangle image, simply set the tintColor of the menu like this:

self.dropdownMenu.tintColor = [UIColor redColor];

If you want to use a custom image, set the disclosureIndicatorImage property to your custom image. To make it also respect the tintColor property, provide an image with "Always Template" rendering mode:

UIImage *indicator = [[UIImage imageNamed:@"indicator"]
                      imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
self.dropdownMenu.disclosureIndicatorImage = indicator;