From 3b46fbadd4e748b2ce3136cbd618cca79e767917 Mon Sep 17 00:00:00 2001 From: "John C. Daub" Date: Thu, 12 Sep 2013 15:49:41 -0500 Subject: [PATCH] Fixing colors for FPPopoverWhiteTint --- FPPopoverView.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/FPPopoverView.m b/FPPopoverView.m index f3bf62e..1e4df05 100644 --- a/FPPopoverView.m +++ b/FPPopoverView.m @@ -338,7 +338,7 @@ -(CGGradientRef)newGradient else if(self.tint == FPPopoverWhiteTint) { colors[0] = colors[1] = colors[2] = 1.0; - colors[0] = colors[1] = colors[2] = 1.0; + colors[4] = colors[5] = colors[6] = 1.0; colors[3] = colors[7] = 1.0; } @@ -512,6 +512,12 @@ -(void)setupViews _contentView.frame = contentRect; _titleLabel.text = self.title; + if (self.tint == FPPopoverWhiteTint) { + _titleLabel.textColor = [UIColor blackColor]; + } + else { + _titleLabel.textColor = [UIColor whiteColor]; + } }