I\'m trying to customize my button by changing their colors, but when I use either:
self.loginButton.layer.backgroundColor = [UIColor colorWithRed:0.0 green:
You're using a round rect button which is pretty ugly, and pretty hard to customise.
You can create a custom type button and use a background image, or create a custom type button and round the corners and set the background colour of the layer yourself.
If you want to get really fancy there is a nice tutorial here which can give you any-sized gradient type buttons using layers, no image files required.