UITextView with white background showing as Color Blended Layer in instruments and simulator UITextView with white background showing as Color Blended Layer in instruments and simulator xcode xcode

UITextView with white background showing as Color Blended Layer in instruments and simulator


I was struggling with this problem as well. I have a UITableView that was scrolling fine on iPhone but just jittered like crazy on the iPad. I turned on Color blending layers in Instruments and, like you said, it appears opaque = YES; and backgroundColor = [UIColor whiteColor]; have no effect.

Bob is correct too, UILabels are more performant. However my implementation relies on exclusion paths, which are only available in UITextView because of the exposed TextKit stack. I couldn't just use UILabel so out of desperation I tried this and the red on my UITextViews disappeared:

for (UIView *subview in textView.subviews) {    subview.backgroundColor = theme.post.backgroundColor;}

I know this is an old question but I've spent the better part of the day debugging this. I hope other people find it useful.


Well, the UITextView is a more advanced view that's scrollable and supports custom text formatting, so you might not be able to get it to 'not blend'. With other views you should check the opaque checkbox, but I doubt if that will work in this case.

Your best bet would be to use a UILabel instead. You could replace it with a UITextView when the user needs to edit a field, but using UILabel while scrolling should improve the speed considerably.