creating border for uitableview

后端 未结 3 803
再見小時候
再見小時候 2020-12-14 16:47

I am using a uitableview and scrollview in a uiview. How to set a border for table or scrollview?

3条回答
  •  有刺的猬
    2020-12-14 17:42

    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
    

提交回复
热议问题