UIColor `-colorWithPatternImage:` alpha blending problem solution. (iOS SDK 4.1)

Viewed 4125

Solution note, not a question.

I used this code to set background as a pattern image:

UIImage *bg     =   SomeImage();
UIColor *bgc    =   [UIColor colorWithPatternImage:bg];
[self setBackgroundColor:bgc];
[self setOpaque:NO];

This works, but alpha blending doesn't work. Might be a bug. How to make it work?

  • Platform: iOS SDK 4.1
1 Answers
Related