-1
/*enter code here */    UIImage *image = [UIImage imageNamed: @"top-bar.png"];
UIImageView *imageview = [[UIImageView alloc] initWithImage: image];

// set the text view to the image view
self.navigationItem.titleView = imageview;

I am using this code for custom navigation bar but the image is cutting out . Although the image width is same as device width.

Any idea, how to solve this.

enter image description here

4

1 回答 1

0

titleView 属性仅涵盖导航的标题区域,而不是完整的导航栏。

于 2013-02-27T14:35:23.533 回答