Problem with navigation bar title

I put the image in the title bar of the navigation bar using the code below, but the image cannot fill the entire title. There are a few pixels left and right.

I want to display my image in the entire viewing area of ​​the name.

Resizing an image does not work.

Any ideas?

[self.navController.navigationBar.topItem setTitleView: imageView];

+3
source share
2 answers

, UINavigationBar drawRect: drawLayer: inContext:. drawRect, , drawLayer: inContext:.

+1

.

0

Source: https://habr.com/ru/post/1717245/


All Articles