Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

manman

macrumors regular
Original poster
Aug 18, 2008
125
1
I did several searches for this beforehand, so I'm sorry if this has been answered before, but I'm looking for a way to change the color of the UIPickerView's black border area if possible. the backgroundColor property wouldn't work for me, but I was wondering if there is something like the navigation bar's tint color property I could use.

Thanks
 

Sbrocket

macrumors 65816
Jun 3, 2007
1,250
0
/dev/null
Changing the art of UIPickerView would be quite a task. If you notice, UIPickerView is constrained to a specific width and height because of the art. There certainly is no easy way to change the color, which is probably what you're looking for, and I have a feeling that the "easiest" way of changing the color would require delving into undocumented methods and classes in UIKit (of which there are many associated with UIPickerView).
 

manman

macrumors regular
Original poster
Aug 18, 2008
125
1
yikes... thanks for the response. I wasn't able to do it through code, so basically what I ended up doing was just taking a screenshot and cutting out the part I wanted to color so I could manipulate it in photoshop. Then I just used a UIImageView and placed it over the picker. I got the effect I wanted, so that's good- but I do wish you could just change the tint color like you can for the navigation bar.
 

manraj

macrumors newbie
May 4, 2008
1
0
hi manman, could you please tell me how you are using UIImageView as overlay view to the UIPickerView? I want to change the background color to my theme screen. It helps me a lot.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.