Xcode iOS colors do not match after build

My colors UIView and UIImageView look great in the interface designer, but are perverted when building - see the figure below with IB on the left, and the simulator on the right:

On the left: Interface Builder, On the right: iOS Simulator

There is a UIView, and the background color is manually set to 65, 126, 218, and on top of this is a UIImageView for the text "checkout", and UIButton with it. Image set for setting preferences. Assets - PNG.

The colors of the assets are read correctly, and everything seems to be aligned right in the interface, as I do not see any seams. However, when I build the background color in the view, it changes a little, as well as the colors of the assets. Using a set of colors shows that both colors were distorted somewhere in the process.

How do I make my colors stay true between IB and the building?

+4
source share
2 answers

Make the snapshot / transparency of the images of the title buttons and settings transparent so that there is no blue square making the effect darker

0
source

Write in your code:

[yourButton setBackgroundColor:[UIColor clearColor]];

Edited: do the same for the background image settings for color checking as a transparent color

-1
source

All Articles