diff --git a/IGCMenu/IGCMenu.h b/IGCMenu/IGCMenu.h index f65e282..fefdd1d 100644 --- a/IGCMenu/IGCMenu.h +++ b/IGCMenu/IGCMenu.h @@ -39,7 +39,8 @@ typedef enum { @property int maxColumn; //Maximium number of column,default is 3 @property int menuHeight; //height = width ,default is 65 @property IGCMenuBackgroundOptions backgroundType; //Default is BlurEffectDark - +@property (nonatomic) UIColor *menuItemColor; + -(void)showCircularMenu; -(void)hideCircularMenu; -(void)showGridMenu; diff --git a/IGCMenu/IGCMenu.m b/IGCMenu/IGCMenu.m index 4c2e8d2..9aeaebb 100644 --- a/IGCMenu/IGCMenu.m +++ b/IGCMenu/IGCMenu.m @@ -30,6 +30,7 @@ - (instancetype)init{ self.numberOfMenuItem = 0; self.menuRadius = 120; self.maxColumn = 3; + self.menuItemColor = [UIColor whiteColor]; self.backgroundType = BlurEffectDark; } return self; @@ -75,7 +76,7 @@ - (void)createMenuButtons{ menuNameLabel.font = [UIFont systemFontOfSize:12]; menuNameLabel.text = self.menuItemsNameArray[i]; [menuNameLabel sizeToFit]; - menuNameLabel.textColor = [UIColor whiteColor]; + menuNameLabel.textColor = self.menuItemColor; [pMenuButtonSuperView insertSubview:menuNameLabel belowSubview:self.menuButton]; [menuNameLabelArray addObject:menuNameLabel]; }