sunilsharma08 / IGCMenu

Grid and Circular Menu for iOS.
http://sunilsharma08.github.io/IGCMenu
MIT License
140 stars 21 forks source link

About Background Color Changes #24

Closed WrathChaos closed 7 years ago

WrathChaos commented 7 years ago

Hello sir, I love using this library :) Thank you so much !

I need to change the color when user tapped one of the menu items. I can do that with a silly solution. Can you suggest me a good solution for changing background colors when user select one of the menu items ?

Thank you :)

sunilsharma08 commented 7 years ago

Hi, Thanks for your appreciation. I am little confused whether you want to change menu button background color or menu background that covers the whole screen.

WrathChaos commented 7 years ago

I want to change the menu button background color, not the whole screen

sunilsharma08 commented 7 years ago

Currently, it does not support updating menu button background color update. I have created a new branch updateButtonBackground to add this feature. Added new method -(void)updateButtonBackground:(NSInteger)atIndex withColor:(UIColor *) newColorto update button background color in IGCMenu class at bottom. To update tapped button background color you can call updateButtonBackground method with tapped button index and new color in delegate method -(void)igcMenuSelected:(NSString *)selectedMenuName atIndex:(NSInteger)index.

WrathChaos commented 7 years ago

Thank you so much, I'm gonna try it :)