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?
Asked
Active
Viewed 661 times
0
-
Look at the answer here http://stackoverflow.com/a/8197568/1891327 – Shamas S Jul 23 '15 at 20:08
1 Answers
2
I tried the following code and it worked.
self.view.layer.borderColor = UIColor.orangeColor().CGColor
self.view.layer.borderWidth = 3

Stephen Fox
- 14,190
- 19
- 48
- 52