I have to create my own Section Header View of a UITableView, with a border on top, on bottom, and a background color.
My question is, what’s the best (or most correct) way to accomplish this?
- Using a image?
- Or drawing the borders and background color with Quartz 2D?
- Are there performance differences?
Thank you! (sorry by my english)
If all you need is borders and background color, then drawing them by would definitely be the way to go. Performance will be better if you draw them versus the image. Although
UIImagesare highly optimized in iPhone, still custom drawing will offer better performance.