views:

104

answers:

2

Not sure how this happened, but all of the UITableRowViews and roundrect-style UIButtons in my app—spanning a dozen or so views—are now all gray instead of white.

Unfortunately, I have no idea how this happened. (In fact, I had no idea it was possible to do this.) Explicitly setting the button's or tableRowView's background color to white gets it back to normal. But it'll be a lot of work to do that to every one of my views...and I'd rather not have to do it since there's obviously something simple that caused it in the first place.

How did I break this?

Thanks very much.

A: 

You could select all of them (Cmd+A or drag a rectangle) and change the background color back to white.

KennyTM
I think that our BFF Greg doesn't use IB for this, since you can't populate UITableViews with IB. However, tablecells are possible. Also, maybe his views are in seperate NIBs.
Time Machine
Indeed, you're right; this isn't an Interface Builder problem. See the answer I just posted for the bizarre solution...
Greg Maletic
+1  A: 

Bizarre: if you add a static method into some UIColor category and call it +(UIColor*)tableViewBackground, it'll change all your tables and buttons to that color.

Must interfere with some hidden method in Apple's UIColor implementation.

I fixed my problem by simply using a different name ("viewBackgroundColor").

Greg Maletic