@@ -61,6 +61,7 @@ @implementation _ASPendingState
6161 int setAutoresizingMask:1 ;
6262 int setBounds:1 ;
6363 int setBackgroundColor:1 ;
64+ int setTintColor:1 ;
6465 int setContents:1 ;
6566 int setHidden:1 ;
6667 int setAlpha:1 ;
@@ -109,6 +110,7 @@ @implementation _ASPendingState
109110@synthesize edgeAntialiasingMask=edgeAntialiasingMask;
110111@synthesize autoresizesSubviews=autoresizesSubviews;
111112@synthesize autoresizingMask=autoresizingMask;
113+ @synthesize tintColor=tintColor;
112114@synthesize alpha=alpha;
113115@synthesize contentMode=contentMode;
114116@synthesize anchorPoint=anchorPoint;
@@ -148,6 +150,7 @@ - (id)init
148150 opaque = YES ;
149151 bounds = CGRectZero;
150152 backgroundColor = nil ;
153+ tintColor = [UIColor colorWithRed: 0.0 green: 0.478 blue: 1.0 alpha: 1.0 ];
151154 contents = nil ;
152155 isHidden = NO ;
153156 needsDisplayOnBoundsChange = NO ;
@@ -265,6 +268,12 @@ - (void)setBackgroundColor:(CGColorRef)color
265268 _flags.setBackgroundColor = YES ;
266269}
267270
271+ - (void )setTintColor : (UIColor *)newTintColor
272+ {
273+ tintColor = newTintColor;
274+ _flags.setTintColor = YES ;
275+ }
276+
268277- (void )setContents : (id )newContents
269278{
270279 if (contents == newContents) {
@@ -652,6 +661,9 @@ - (void)applyToView:(UIView *)view
652661 if (_flags.setBackgroundColor )
653662 layer.backgroundColor = backgroundColor;
654663
664+ if (_flags.setTintColor )
665+ view.tintColor = self.tintColor ;
666+
655667 if (_flags.setOpaque )
656668 view.layer .opaque = opaque;
657669
0 commit comments