UIView = [[UIView alloc]initWithFrame:self.topIconImaView.frame];

        CAGradientLayer *gradientLayer = [CAGradientLayer layer];

        gradientLayer.frame = _topIconImaBackView.bounds;

        [_topIconImaBackView.layer addSublayer:gradientLayer];

        //渐变区域

        gradientLayer.locations = @[[NSNumber numberWithFloat:0.3], [NSNumber numberWithFloat:0.6]];

        gradientLayer.colors = @[(__bridge NSArray * _Nullable)(customColor(245, 133, 114,0.9).CGColor), (__bridge NSArray * _Nullable)(customColor(249, 77, 101,0.9).CGColor)];

        gradientLayer.startPoint = CGPointMake(0, 0);

        gradientLayer.endPoint = CGPointMake(1, 1);

        UITapGestureRecognizer * tap=  [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(topViewTap:)];

        [_topIconImaBackView addGestureRecognizer:tap];