0
次のコード行を使用してUINavigationBarの背景を表示する画像を配置していますが、IOS4ではうまく動作しますが、IOS5のデバイスでは動作しません。IOS5ではUINavigationBar.layer.contentsが動作しません。なぜでしょうか?
UINavigationBar.layer.contents = (id)[UIImage imageNamed:@"header_bg_green.png"].CGImage;
IOS 5 Simulatorでテストすると、UINavigationBarレイヤーのイメージが表示されません。
助けてください。
おかげで、iOSの5で Jigar
[こちらはCustomNavigationBarの完全実装です](https://github.com/boctor/idev-recipes/blob/master/CustomBackButton/Classes/CustomNavigationBar.m)は、iOS 4とiOS 5の両方で動作します。 –