// // QBVideoIndicatorView.m // QBImagePicker // // Created by Katsuma Tanaka on 2015/04/04. // Copyright (c) 2015 Katsuma Tanaka. All rights reserved. // #import "QBVideoIndicatorView.h" @implementation QBVideoIndicatorView - (void)awakeFromNib { [super awakeFromNib]; // Add gradient layer CAGradientLayer *gradientLayer = [CAGradientLayer layer]; gradientLayer.frame = self.bounds; gradientLayer.colors = @[ (__bridge id)[[UIColor clearColor] CGColor], (__bridge id)[[UIColor blackColor] CGColor] ]; [self.layer insertSublayer:gradientLayer atIndex:0]; } @end