[tvOS] Improve naming of method

This commit is contained in:
Aaron Schubert
2016-04-21 09:02:31 +01:00
parent 06d4573b14
commit 39a6aa3437
3 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@
} else{ } else{
//Not focused //Not focused
[coordinator addCoordinatedAnimations:^{ [coordinator addCoordinatedAnimations:^{
[self setDefaultState]; [self setDefaultFocusAppearance];
} completion:nil]; } completion:nil];
} }
} }
@@ -74,7 +74,7 @@
layer.shadowPath = [UIBezierPath bezierPathWithRect:self.layer.bounds].CGPath; layer.shadowPath = [UIBezierPath bezierPathWithRect:self.layer.bounds].CGPath;
} }
- (void)setDefaultState - (void)setDefaultFocusAppearance
{ {
CALayer *layer = self.layer; CALayer *layer = self.layer;
layer.shadowOffset = CGSizeZero; layer.shadowOffset = CGSizeZero;

View File

@@ -126,7 +126,7 @@ typedef NS_OPTIONS(NSUInteger, ASControlState) {
/** /**
@abstract How the node looks when it isn't focused. Exposed here so that subclasses can override. @abstract How the node looks when it isn't focused. Exposed here so that subclasses can override.
*/ */
- (void)setDefaultState; - (void)setDefaultFocusAppearance;
#endif #endif
@end @end

View File

@@ -96,7 +96,7 @@
view.layer.transform = scaleAndTransform; view.layer.transform = scaleAndTransform;
}]; }];
} else { } else {
[self setDefaultState]; [self setDefaultFocusAppearance];
} }
} }
@@ -130,7 +130,7 @@
} }
}]; }];
} else { } else {
[self setDefaultState]; [self setDefaultFocusAppearance];
} }
} }
@@ -146,7 +146,7 @@
view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.25, 1.25); view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.25, 1.25);
} }
- (void)setDefaultState - (void)setDefaultFocusAppearance
{ {
UIView *view = [self getView]; UIView *view = [self getView];
CALayer *layer = view.layer; CALayer *layer = view.layer;