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 CGContextDrawTiledImage 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.