i would like to draw a border / shadow around a uiscrollview, i know that i could get there with an additional view or scrollview but dont like the handling an drawbacks but
To get the CGColorRef from an UIColor you can also use this example:
myView.layer.borderWidth = 2; myView.layer.borderColor = [UIColor blackColor].CGColor;