Skip to content

Commit

Permalink
Merge pull request #4 from tbrannam/patch-1
Browse files Browse the repository at this point in the history
Merged fix for use of incorrect setters for property `attributedTitle`.
  • Loading branch information
tolo committed Oct 23, 2014
2 parents 7509961 + 3c9790b commit fcdc71e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions InterfaCSS/Model/ISSPropertyRegistry.m
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ - (void) initializeRegistry {
ISSPropertyDefinition* attributedTitle = pp(S(attributedTitle), controlStateParametersValues, ISSPropertyTypeAttributedString, ^(ISSPropertyDefinition* p, id viewObject, id value, NSArray* parameters) {
UIControlState state = parameters.count > 0 ? (UIControlState)[parameters[0] unsignedIntegerValue] : UIControlStateNormal;
if( [viewObject respondsToSelector:@selector(setAttributedTitle:forState:)] ) {
[viewObject setTitle:value forState:state];
[viewObject setAttributedTitle:value forState:state];
} else if( [viewObject respondsToSelector:@selector(setAttributedTitle:)] ) {
[viewObject setTitle:value];
[viewObject setAttributedTitle:value];
}
});

Expand Down Expand Up @@ -1068,4 +1068,4 @@ - (void) initializeRegistry {
#pragma GCC diagnostic pop
}

@end
@end

0 comments on commit fcdc71e

Please sign in to comment.