开发者

How to draw an tiled background image with alpha transparency on iPhone OS?

When I use UIColor -colorWithPatternImage: to create a view with an tiled background pattern, everything that is supposed to be transparent appears to be black. Of course I can't assign clearColor to the background, since the background is already this pattern image UIColor object.

I believe that this internally is using CGContextDrawTiledImage function. Or must I go directly with CGContextDrawTiledIm开发者_如何转开发age in this case?


You need to have something in the back that is not transparent. Otherwise the backmost background (black) will show through your transparent image.

Claus

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜