Strange Issue.
When I set background colour for UIView, UILabel or UIButton from Storyboard it is showing as below
But When I set background color using programming like below,
customView.backgroundColor = //Same colour which I set in storyboard
for same views, it is showing as below:
Check Colour difference for same RGB values
Also, For navigation bar with same tint colour and nil background image it is showing like below
self.navigationBar.setBackgroundImage(nil, for: .default)
self.navigationBar.barTintColor = UIColor.nbRedColor()
And when I set translucent property to false, it is shwoing as below:
self.navigationBar.isTranslucent = false
I understand the navigation bar different colour thing is due to isTranslucent flag. But why is background colour of views from storyboard and programming is differnet.
(Background colour from Programming is correct one)
Xcode Version 8.3.3 (Tested in both simulator and multiple devices)