hachinoBlog

hachinobuのエンジニアライフ

iOS7でtoolbarもしくはnavigationBarの色が濁る事象

前回の記事(http://d.hatena.ne.jp/hachinobu/20131010/1381364057)に関連するのかもしれないがiOS7のStoryboardでUIViewControllerにUIToolbarを配置してビルドしたらUIToolbarの領域の色が濁ってた。


  

これの回避方法としてはtranslucentプロパティにNOを設定するといい。

self.navigationController.navigationBar.translucent = NO;
self.toolbar.translucent = NO;

参考URL
http://stackoverflow.com/questions/18907104/uitoolbar-incorrect-colour-in-ios7
http://stackoverflow.com/questions/18929864/how-do-i-change-the-navigation-bar-color-in-ios-7