ios - UIColor is not giving the intended color -


i wanted set navigation bar tint color rgb(255,80,30) shown in attached image. when execute simulator, different color. photoshop color properties comparison

here code in view controller

- (void)viewdidload {     [super viewdidload];     // additional setup after loading view.      uicolor *backgroundcolor = [theme colorproperty:background_color                                         fromtabmenu:calendar];     cgfloat redvalue, greenvalue, bluevalue, alphavalue;     [backgroundcolor getred:&redvalue green:&greenvalue blue:&bluevalue alpha:&alphavalue];      nslog(@"red:%f, green:%f, blue:%f, alpha:%f", redvalue*255.0, greenvalue*255.0, bluevalue*255.0, alphavalue*255.0);      [self.tabbarcontroller.tabbar settintcolor:backgroundcolor];     [self.navigationcontroller.navigationbar setbartintcolor:backgroundcolor]; } 

and following value in console output.

2014-03-14 04:37:49.404 planner[46712:70b] red:255.000000,                                           green:80.000003,                                            blue:30.000000,                                           alpha:255.000000 

as can see, have set correct r g b value, can not intended color. problem here?

just experiment set uiview [uicolor colorwithred:1.000000f green:0.313725f blue:0.117647f alpha:1.0f] thats exact rgb looking for, reason uiview there no styling or tint's applied there , can determine if photoshops colour settings different ios.

update

setting background rbg colour did not render same colour displayed photoshop.

update 2

i no expert on know photoshop can setup different mediums (publishing, web, devices etc) have different colour settings, maybe that. color maker on app store confirm colors.

color maker


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -