XBGradientColorView *grv=[XBGradientColorView new];
[self.view addSubview:grv];
grv.frame=CGRectMake(0, 20, 375, 500);
grv.fromColor=[UIColor colorWithHex:@"#2099f4"];
grv.toColor=[UIColor colorWithHex:@"#215eeb"];
grv.direction=0;//设置渐变方向
网友评论