Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Design Horizontal Line on UiView

Tags:

ios

uiview

line

anyone can 'tell me how you draw a horizontal line on the UIView by code or by other methods? I need this line to create a separator Thank you all

like image 580
kAiN Avatar asked Oct 23 '13 17:10

kAiN


Video Answer


1 Answers

The easiest way to do this is probably use to create a UIView with the height, width, and color you want your separator to have and make it a subview of the view in question. In other words, make a 1 or 2 point tall UIView and use it as your separator. Position it using constraints or manually setting its frame.

like image 149
Alex Avatar answered Oct 18 '22 11:10

Alex