In my app I am trying to create a customized/stylish horizontal line in-between two labels. I have searched in SO and Google but it has only by code. How to add a horizontal line using story board?
In Android I have designed the below line using XML.
How can I create the same line in iOS?
In Storyboard, if you don't want code. I recommend following process. draw a line using a drawing tool (about illustrator, photoshop) and then saved as png. make a UIImageView your Storyboard and set image your png file.
All you have to do is drag a UIView with height = 1 and width whatever is good for you (ideally equal to screen width). Place it where you want the lines to be. works.
You just have 2 options:
That's it
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