Skip to content

Commit

Permalink
0.9.17
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Jan 10, 2014
1 parent 9216f36 commit c763707
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions UI7Kit.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion UI7Kit/UI7SegmentedControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c763707

Please sign in to comment.