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; 

the navigation title view in green

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

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -