dantastic macrumors 6502a Original poster Mar 2, 2011 #1 See screenie, what UIColor is the button please? I've a uisegmentedcontrol I need to set the same colour for but I can't seem to get it right 🙁 Attachments backbutton.png 14.3 KB · Views: 472
See screenie, what UIColor is the button please? I've a uisegmentedcontrol I need to set the same colour for but I can't seem to get it right 🙁
PhoneyDeveloper macrumors 68040 Mar 2, 2011 #2 Maybe this Code: +(UIColor*)tableViewBlue { static UIColor* color = nil; if (! color) color = [[UIColor alloc] initWithRed:50.0f/255.0f green:79.0f/255.0f blue:133.0f/255.0f alpha:1.0f]; return color; } If that's the tint color or the color of some text or other control you should be able to print it out.
Maybe this Code: +(UIColor*)tableViewBlue { static UIColor* color = nil; if (! color) color = [[UIColor alloc] initWithRed:50.0f/255.0f green:79.0f/255.0f blue:133.0f/255.0f alpha:1.0f]; return color; } If that's the tint color or the color of some text or other control you should be able to print it out.
dantastic macrumors 6502a Original poster Mar 2, 2011 #3 that's a very dark grey colour. The colour I want is sitting on a uibarbuttonitem and I can't seem to be able to access the tintcolor of that object. good thinking though!
that's a very dark grey colour. The colour I want is sitting on a uibarbuttonitem and I can't seem to be able to access the tintcolor of that object. good thinking though!
dantastic macrumors 6502a Original poster Mar 2, 2011 #4 We have a winner Code: [UIColor colorWithRed:(117.0/255.0) green:(143.0/255.0) blue:(179.0/255.0) alpha:1]; I used the built in tool to tell me the colour. Just giving that colour didn't do it but I was able to the use the tool and compare the colour of the button to my own button. sorted!
We have a winner Code: [UIColor colorWithRed:(117.0/255.0) green:(143.0/255.0) blue:(179.0/255.0) alpha:1]; I used the built in tool to tell me the colour. Just giving that colour didn't do it but I was able to the use the tool and compare the colour of the button to my own button. sorted!