Guest User

Untitled

a guest
Jan 21st, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. //
  2. // GradientView.m
  3. // StravaExplorer
  4. //
  5. // Created by Jeff Remer on 9/16/11.
  6. // Copyright 2011 Strava. All rights reserved.
  7. //
  8.  
  9. #import "GradientView.h"
  10. #import <QuartzCore/QuartzCore.h>
  11.  
  12. @implementation GradientView
  13.  
  14. + (Class)layerClass {
  15. return [CAGradientLayer class];
  16. }
  17.  
  18. - (void)setGradientColors:(NSArray *)colors {
  19. SEL setColorsSel = @selector(setColors:);
  20. if ([self.layer respondsToSelector:setColorsSel]) {
  21. [self.layer performSelector:setColorsSel withObject:colors];
  22. }
  23. }
  24.  
  25. @end
Add Comment
Please, Sign In to add comment