0

I need to draw a visible border that goes around the edge of the screen within my view controller. I tried setting the view's borderWidth and borderColor, but nothing appeared on the screen. How would I accomplish this?

Tice
  • 93
  • 1
  • 9

1 Answers1

2

I tried the following code and it worked.

self.view.layer.borderColor = UIColor.orangeColor().CGColor
self.view.layer.borderWidth = 3

ViewController

Stephen Fox
  • 13,630
  • 19
  • 47
  • 52