navigationbar - iOS Image in navigation Item titleview -
i want add image in navigation bar. this, wrote :
self.navigationitem.titleview = [[uiimageview alloc] initwithimage: [uiimage imagenamed:@"logo.png"]];
it's running, problem image seems blurred. when on photoshop or other software, image perfect.
the size of image : 120 x 30px.
someone me ? thx
first of all, please, print self.navigationitem.titleview.frame after viewdidappear.
seems be, in case titleview placed half-pixeled origin.x, or origin.y.
try play with:
[self.navigationcontroller.navigationbar settitleverticalpositionadjustment:<#(cgfloat)#> forbarmetrics:<#(uibarmetrics)#>]
try set different values first param , observe result.
Comments
Post a Comment