UINavigationBar の背景を画像にするでは、UINavigationBar の背景を画像にする方法を紹介しました。基本的には UIImageView を UINavigationBar に insertSubview: atIndex: すればよかったのですが、ひと工夫が必要でした。 では、UIToolbar の背景を画像にする方法はどうでしょうか。 今回は、UIToolbar の背景を画像にする方法を紹介します。 UIToolbar の背景を画像にするには、UIImageView を UIToolbar に insertSubview: atIndex: すればそれで OK です。UINavigationBar の場合、ビューコントローラをプッシュしたりポップする過程でタイトルやバーボタンアイテムが UIImageView の後ろに潜り込んでしまう問題がありましたが、UITo
![UIToolbar の背景を画像にする](https://cdn-ak-scissors.b.st-hatena.com/image/square/b65ef6e2d03c8a2132356cc4401aeebd5be3577d/height=288;version=1;width=512/https%3A%2F%2Frunlooprun.wordpress.com%2Fwp-content%2Fuploads%2F2011%2F02%2Fcustomtoolbar1.png)