摘要: UIView设置背景渐变色// Allocate bitmap contextCGContextRef bitmapContext = CGBitmapContextCreate(NULL, 320, 480, 8, 4 * 320, CGColorSpaceCreateDeviceRGB(), kCGImageAlphaNoneSkipFirst);// Draw Gradient HereCGContextDrawLinearGradient(bitmapContext, myGradient, CGPointMake(0.0f, 0.0f), CGPointMake(320.0f, 48 阅读全文
posted @ 2013-07-30 10:25 痴人指路 阅读(1353) 评论(0) 推荐(0) 编辑