cell圆角效果

#pragma mark  <<<<<<< view的f样式 >>>>>>>
    cell.backgroundColor = [UIColor whiteColor];
    cell.layer.masksToBounds = YES;
    cell.layer.cornerRadius = 4;
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    cell.layer.cornerRadius = 8;
    cell.layer.shadowColor = [UIColor colorWithRed:153/255.0 green:153/255.0 blue:153/255.0 alpha:0.9].CGColor;
    cell.layer.shadowOffset = CGSizeMake(0,2);
    cell.layer.shadowOpacity = 1;
    cell.layer.shadowRadius = 10;

你可能感兴趣的:(移动)