iOS——給View add陰影效果

UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:header.bounds];ci

    header.layer.masksToBounds = NO;it

    header.layer.shadowColor = HKDefaultPlaceColor.CGColor;header

    header.layer.shadowOffset = CGSizeMake(0, 5);

    header.layer.shadowOpacity = 0.5f;

    header.layer.shadowPath = shadowPath.CGPath;

相關文章
相關標籤/搜索