For example, use uicolor to create a color (21125251) with an alpha value of 100,
[UIColor colorWithRed:21/255.0 Green:125/255.0 Blue:251/255.0 alpha:1.0]];
Using the screenshot tool to detect the color of the simulator, the result of the color value is: (55144251), how to get the correct color?
I think there are two possibilities:
01. You use the screenshot tool to change the picture when you cut it;
02. How to get the color is a problem;
It is recommended to use the color picker directly to get the color.
[self.navigationController.navigationBar setBarTintColor:RGB(0x2d, 0xa8, 0xde)];I usually control the background color of NavigationBar like this.