2011年4月28日

Gradient 并且存为image

摘要: CGGradientRef 的基本步骤1 创建 CGGradient 对象, 提供一个 colorspace,提供一个数组,包含两个以上的颜色, 提供一个数组,包含两个以上的颜色所处位置, 提供一个数组包含前面两个数组中元素个数.2 调用CGContextDrawLinearGradient 或者 CGContextDrawRadialGradient ,提供参数 context, CGGradient 对象, drawing options, 开始和结尾的几何形状 (轴向渐变是两个点,径向渐变是圆心和半径).3 释放CGGradient。示例效果图创建一个图形上下文函数CGContextRe 阅读全文

posted @ 2011-04-28 17:23 GaryGaryGary 阅读(184) 评论(0) 推荐(0)

How to Make Custom Drawn Gradient Backgrounds in a Grouped UITableView with Core Graphics

摘要: In iPhone app design, it is important to find a balance between customization and familiarity. Many times, subtle differences are all you need to make yourself stand out from the crowd. While doing the Ambiance 3.0 redesign, I wanted something to make my list of content a little different than all t 阅读全文

posted @ 2011-04-28 14:41 GaryGaryGary 阅读(189) 评论(0) 推荐(0)

导航