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

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -