Code Snippet: Hairline Thickness in iOS
CGFloat IKBHairlineThickness() {
CGFloat scale = [[UIScreen mainScreen] scale];
return (1.0 / scale);
}
What is a hairline anyways?
Hairlines are 1 pixel thick separators used everywhere in iOS. From the top
edges of UITabBars to UITableView
separators.