更多iOS晋级技术分享,请关注 合伙呀
//- (UIView *)createTimeBG
//{
// UIView *view = [[UIView alloc]init];
// view.backgroundColor = [UIColor clearColor];
// view.layer.shadowOffset = CGSizeMake(0, 2);
// view.layer.shadowColor = [[UIColor blackColor] colorWithAlphaComponent:0.35].CGColor;
// view.layer.shadowOpacity = 1;
//
// CALayer *sublayer =[CALayer layer];
// sublayer.frame = CGRectMake(0, 0, 20, 20);
// sublayer.backgroundColor = [UIColor sy_black2Color].CGColor;
// sublayer.cornerRadius = 2;
// sublayer.masksToBounds = YES;
// [view.layer addSublayer:sublayer];
// return view;
//}