I have an imageview and a label, I want a border in between them, what is the best approach?
I know that the following code creates a border around the whole imageView:
[imageView.layer setBorderColor: [[UIColor blackColor] CGColor]];
[imageView.layer setBorderWidth: 2.0];
But I only want a line below it, not around the whole thing.
Just add an UILabel
with background color as black(Assuming your border color as black) and height of 1px between you UIImageView
and UILabel
this would be much simpler.
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