I am using a uitableview and scrollview in a uiview. How to set a border for table or scrollview?
if you want to give the border to tableview with color, use below code for swift 3
yourTableViewName.layer.borderColor = UIColor.gray.cgColor yourTableViewName.layer.borderWidth = 1.0