ios - Navbar colour doesn't look right -
i've set navbar white or atleast tried to. however, hasn't come out looking white seems.
here's bit of code set it.
- (void)viewdidload { [super viewdidload]; [self addsidebarnavbutton]; // set navbar [self setedgesforextendedlayout:uirectedgenone]; uilabel *nav_titlelbl=[[uilabel alloc]initwithframe:cgrectmake(0, 0, self.navigationitem.titleview.frame.size.width,40)]; nav_titlelbl.text=@""; nav_titlelbl.textalignment=nstextalignmentcenter; uifont *lblfont=[uifont fontwithname:@"futura-medium" size:20]; [nav_titlelbl setfont:lblfont]; self.navigationitem.titleview=nav_titlelbl; // set navbar colour self.navigationcontroller.navigationbar.bartintcolor = [uicolor colorwithred:255.0/255.0f green:255.0/255.0f blue:255.0/255.0f alpha:1.0]; self.navigationcontroller.navigationbar.translucent = yes;
unfortunately can't attach navbar image here don't have 10 reputation points needed. if could, you'd see navbar in question comes out looking light gray!
set self.navigationcontroller.navigationbar.translucent = no;
might seeing view background.
Comments
Post a Comment