ProgressView1 [iOS][GitHub] UIBezierPath 를 이용한 ProgressView - GSProgressView GSProgressViewUIBezierPath 를 이용한 진행상태를 표시해주는 깔끔고 심플한 Progress View. 0.0~1.0 Range 로 0%~100% 상태를 표시하며 완료시 체크표시로 바뀐다. 체크 표시를 우선 'ㄴ' 모양으로 Draw 하고 45도 Rotation 하게 구현하여 코드 가독성을 높인점이 흥미롭다. /* First draw a tick that looks like this: A---F | | | E-------D | | B-----------C (Remember: (0,0) is top left) */ UIBezierPath *tickPath = [UIBezierPath bezierPath]; CGFloat tickWidth = radius/3; [tickPath moveToP.. 2012. 12. 24. 이전 1 다음