From past few days i am trying to change the background color of UIButton using rgb values but i am not sure why it isn't changing the color. My initial requirement was to change the color of a button by giving the hexadecimal color value. As i couldn't find a way to do that, i am trying it in the following way
UIColor *ButtonColor = [[UIColor alloc]initWithRed:10 green:107 blue:171 alpha:1];
self.LoginButton.backgroundColor = ButtonColor;
Am i doing wrong anywhere in the above code ..?. Any help is much appreciated!!!