It\'s very easy to put a simple border on a UIView. You simply link to QuartzCore, import it, and use:
UIView
QuartzCore
self.view.layer.borderColor
I created a second gradient layer with the colors reversed in the array, and then made the frame of the second layer slightly smaller than the first layer. Creates the appearance of a border.