iOS 7 NavigationBar没有显示精确的RGB颜色

gal*_*leo 5 objective-c uinavigationbar ios ios7

我在AppDelegate中为Nav Bar设置了一种特殊颜色:

[[UINavigationBar appearance]setBarTintColor:[UIColor colorWithRed:0 green:(41.0f/255.0f) blue:(103.0f/255.0f) alpha:1]];
Run Code Online (Sandbox Code Playgroud)

但是随后显示的RGB值是:R:12 G:48 B:110.iOS似乎只是把价值提高了一点.我怎么能避免这种情况?(因为它看起来很难看)当我给同一种颜色定制的TableViewSection时,它是对的.

截图:

的NavBar: 导航栏

自定义TableViewSection: 在此输入图像描述

gal*_*leo 7

好吧,他们是半透明的.在StoryBoard中未经检查半透明,现在工作正常;)