Нет описания

QBVideoIndicatorView.m 692B

1234567891011121314151617181920212223242526272829
  1. //
  2. // QBVideoIndicatorView.m
  3. // QBImagePicker
  4. //
  5. // Created by Katsuma Tanaka on 2015/04/04.
  6. // Copyright (c) 2015 Katsuma Tanaka. All rights reserved.
  7. //
  8. #import "QBVideoIndicatorView.h"
  9. @implementation QBVideoIndicatorView
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. // Add gradient layer
  14. CAGradientLayer *gradientLayer = [CAGradientLayer layer];
  15. gradientLayer.frame = self.bounds;
  16. gradientLayer.colors = @[
  17. (__bridge id)[[UIColor clearColor] CGColor],
  18. (__bridge id)[[UIColor blackColor] CGColor]
  19. ];
  20. [self.layer insertSublayer:gradientLayer atIndex:0];
  21. }
  22. @end