How do I set a background image for a grouped table view?

后端 未结 6 1746
萌比男神i
萌比男神i 2020-12-14 11:55

I\'ve seen some iPhone applications that use a custom image as the background for a grouped UITableView, instead of the standard gray lines.

How is this achieved?

6条回答
  •  醉酒成梦
    2020-12-14 12:25

    the problem with colorWithPatternImage: is that you need to use "patterned" images, otherwise your image will be tiled randomly

    this link has a simple solution, if you want all your views to have the same background

    http://howtomakeiphoneapps.com/2009/03/how-to-add-a-nice-background-image-to-your-grouped-table-view/

提交回复
热议问题