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
  • 103
  • 1
  • 10

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
  • 14,190
  • 19
  • 48
  • 52