标签:apple 5.0 layer init opacity return none uicolor ret
//- (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;
//}
标签:apple 5.0 layer init opacity return none uicolor ret
原文地址:https://www.cnblogs.com/huntaiji/p/9451431.html