Most effective way of drawing 4 lines in an iPhone app?

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:51 UTC
Read the original article Hit count: 357

Filed under:

basic question, but I'm unsure. Not looking for code as an answer.

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, then 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