Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unknown pattern color for the background color attribute

Getting the compiler warning:

Unsupported Configuration: 
Unknown pattern color for the Background Color attribute

on my xib when trying to set the background color of a UIView to clear in interface builder. I swear I've made a UIView clear in the past without any trouble. Google isn't giving me anything useful. I feel like there is a head-slapping-simple answer here but after 14 hours at the keyboard (not on this issue) my tired mind isn't figuring it out.

like image 849
capikaw Avatar asked Feb 27 '13 03:02

capikaw


2 Answers

I had lot of problem with the same issue. I solved this by this way "select the UIView in interface builder, background color first set default color in option and build it".

like image 105
kunalg Avatar answered Sep 28 '22 16:09

kunalg


I started getting this warning after updating to Mavericks and Xcode 5.1.1

I read elsewhere that the clearColor was the cause of this warning but in my case it was a pattern very similar to the standard Apple dark grey style background you see after updating an iPhone. No idea how it got there, don't remember ever asking for a pattern rather than a color nor how to select a pattern in the color selector popup. Perhaps it was chosen by IB because something in my original code was missing.

I changed it to Default, rebuilt and the warning has not returned. The only problem was going through each UIView until I found the one causing the warning because the background preview dropbox control in attributes is tiny.

Once aware of it, the pattern can be seen instead of a color

Background selection control

like image 40
macasas Avatar answered Sep 28 '22 16:09

macasas