ios - How to deal with default paddings while customise navigation bar with title view? -
i trying customise navigation bar title view. seems setting title view comes own left , right , top paddings.i expecting title view cover whole navigation bar according frames given.
is expected behaviour , if yes how deal that?
uiview *view = [[uiview alloc] initwithframe:cgrectmake(0, 0, 375, 44)]; view.backgroundcolor = [uicolor greencolor]; //navigation bar self.navigationitem.titleview = view;
if want navigation bar green use [self.navigationcontroller.navigationbar setbartintcolor:[uicolor greencolor]];
in ios 7+ or [self.navigationcontroller.navigationbar settintcolor:[uicolor greencolor]];
in ios 6-
Comments
Post a Comment