Most effective way to draw 4 lines on a screen?

Posted by Ross on Stack Overflow See other posts from Stack Overflow or by Ross
Published on 2010-05-26T14:18:02Z Indexed on 2010/05/26 14:21 UTC
Read the original article Hit count: 364

Filed under:

basic question, but I'm unsure:

I want to draw 4 short lines 1px lines on a view. What is the best way to approach this task? Options:-

  • Load an image of the line, can create 4 UIImageViews with it.
  • Create my own subclass of a UIView that draws a line in the draw rect method.
  • Draw elsewhere on another view, another UIImageView that has an UIImage inside it (is this possible?)
  • Another way?

Thanks Ross

© Stack Overflow or respective owner

Related posts about iphone