Skip to content

Commit

Permalink
fix bug: Xcode 9.0 "Debug view Hierarchy" is blank (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
王氩 authored and HeshamMegid committed May 16, 2018
1 parent e83e3de commit ae84d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HMSegmentedControl/HMSegmentedControl.m
Expand Up @@ -257,7 +257,7 @@ - (NSAttributedString *)attributedTitleAtIndex:(NSUInteger)index {
if (titleColor) {
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithDictionary:titleAttrs];

dict[NSForegroundColorAttributeName] = (id)titleColor.CGColor;
dict[NSForegroundColorAttributeName] = titleColor;

titleAttrs = [NSDictionary dictionaryWithDictionary:dict];
}
Expand Down

0 comments on commit ae84d09

Please sign in to comment.