gliubc
7/6/2018 - 12:06 PM

shadow

- (void)shadowButton:(UIView *)view {
    view.layer.masksToBounds = NO;
    view.layer.shadowColor = [UIColor colorWithRed:143/255.0 green:119/255.0 blue:243/255.0 alpha:1.0].CGColor;
    view.layer.shadowOffset = CGSizeMake(0,1);
    view.layer.shadowRadius = 3;
    view.layer.shadowOpacity = 1;
}