Search code examples
iphoneioscocoa-touchuilabelcgcontextref

Separating multiple UILabels with a line IOS


I wan to design a settings page, in which I have to draw lines between multiple labels, what is the best way to do this, I have googled around, got to know about CGContextRef approach. Is this the proper way, I need to have a line between labels (consecutively). Can I go ahead with this approach or any other best way is there.


Solution

  • I have given base view as dark color and I am adding labels as white, I am giving a line gap between two labels its looking like a line. No extra work :)