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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With