UIView设置背景渐变色 // Allocate bitmap context CGContextRef bitmapContext = CGBitmapContextCreate(NULL, , , , * , CGColorSpaceCreateDeviceRGB(), kCGImageAlphaNoneSkipFirst); // Draw Gradient Here CGContextDrawLinearGradient(bitmapContext, myGradient, CGPoi