From c76370744533b0c94f924dc8351b9f4c303fd1bc Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Fri, 10 Jan 2014 22:18:42 +0900 Subject: [PATCH] 0.9.17 --- UI7Kit.podspec | 4 ++-- UI7Kit/UI7SegmentedControl.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UI7Kit.podspec b/UI7Kit.podspec index 1f90481..433ffd6 100644 --- a/UI7Kit.podspec +++ b/UI7Kit.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "UI7Kit" - s.version = "0.9.16" + s.version = "0.9.17" s.summary = "UI7Kit is a GUI toolkit to implement iOS7 look & feel UIKit under iOS5/iOS6. It is also supported that patching UIKit to UI7Kit in runtime." s.homepage = "https://github.com/youknowone/UI7Kit" s.screenshots = "https://raw.github.com/youknowone/UI7Kit/master/UI7Kit.png", s.license = "2-clause BSD" s.author = { "Jeong YunWon" => "jeong@youknowone.org" } - s.source = { :git => "https://github.com/youknowone/UI7Kit.git", :tag => "0.9.16" } + s.source = { :git => "https://github.com/youknowone/UI7Kit.git", :tag => "0.9.17" } s.platform = :ios, '5.0' s.header_dir = "UI7Kit" diff --git a/UI7Kit/UI7SegmentedControl.m b/UI7Kit/UI7SegmentedControl.m index 7b2b3e3..5098705 100644 --- a/UI7Kit/UI7SegmentedControl.m +++ b/UI7Kit/UI7SegmentedControl.m @@ -117,7 +117,7 @@ - (void)_backgroundColorUpdated { } // NSDictionary *selectedAttributes = @{UITextAttributeTextColor: self.stackedBackgroundColor}; UIColor *tintColor = self.tintColor; - UIColor *whiteColor = [UIColor colorWithRed:1.0f green:1.0f blue:1.0f alpha:1.0f]; + UIColor *whiteColor = [UIColor whiteColor]; NSDictionary *selectedAttributes = @{UITextAttributeTextColor: [tintColor isEqual:whiteColor] ? [UIColor darkTextColor] : self.stackedBackgroundColor};//if tintColor is white, then set selectedColor to darkTextColor [self setTitleTextAttributes:selectedAttributes forState:UIControlStateSelected];