时间的渐变
#define kBgColor1 [UIColor colorWithRed:0.09 green:0.61 blue:0.98 alpha:1]
#define kBgColor2 [UIColor colorWithRed:0.07 green:0.42 blue:0.80 alpha:1]
#define kBgColording [UIColor colorWithRed:255/255.0 green:63/255.0 blue:0 alpha:0.89]
#define kBgColordi [UIColor colorWithRed:239/255.0 green:0 blue:7/255.0 alpha:0.91]
CAGradientLayer *gradient=[CAGradientLayer layer];
gradient.frame = CGRectMake(0, 0, kMainScreen_width, 182);
gradient.colors = [NSArray arrayWithObjects:
(id)rgba(255, 88, 23, 1).CGColor,
(id)kBgColordi.CGColor,
nil];
[self.layer insertSublayer:gradient atIndex:0];