0
背景圖片我想改變導航Bar.in我的背景圖片我下面更改UINavigationBar的
UINavigationBar *navBar = self.navigationController.navigationBar;
UIImageView *image1=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 50)];
image1.image = [UIImage imageNamed:@"image2_ram.jpg"];
[navBar setBackgroundImage:image1.image forBarMetrics:UIBarMetricsDefault];
圖像代碼更改,但是圖像的高度沒有變化,爲什麼?
你是什麼意思的圖像的高度? –