SinglePixLine is subclass of UIView. It helps iOS developer to draw 1px width line on iPhone screen.
Run SinglePixLineDemo/SinglePixLineDemo.xcodeproj
-
drag a UIView in your Interface Builder
-
bind class MYIHorizontalSinglePixLine
-
setting line color
SinglePixLine 是一个帮助iOS开发者在iPhone上绘制出1px的横线。
因为iPhone是Retina屏,想画出最细的线也就是1px的线很困难。SinglePixLine 可以满足这一需求。
查看并运行 SinglePixLineDemo/SinglePixLineDemo.xcodeproj