I am using a uitableview and scrollview in a uiview. How to set a border for table or scrollview?
#import "QuartzCore/QuartzCore.h"
then in viewDidLoad use,
viewDidLoad
tableView.layer.borderWidth = 2.0;
Note
You can also set the border color:
tableView.layer.borderColor = [UIColor redColor].CGColor;
It should work for you. :)