开发者

Help with iphone segment control colors

开发者 https://www.devze.com 2023-01-25 06:41 出处:网络
I need some help getting the right hex colors to my dev team. I have done some research but it seems l开发者_高级运维ess then obvious for how i achieve this

I need some help getting the right hex colors to my dev team. I have done some research but it seems l开发者_高级运维ess then obvious for how i achieve this

here is the image

http://dl.dropbox.com/u/2982102/stack%20overflow.png

you will see what we need the segment control to look like. We dont need it perfect but we are trying to get close.

can you help me with this task, it might also help others in the future color these things correctly

Thanks


This may help?:

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

It creates a UIColor from a C hex number.

0

精彩评论

暂无评论...
验证码 换一张
取 消