How to change background selected color storyboard static cells

前端 未结 3 1000
眼角桃花
眼角桃花 2021-01-03 00:48

I have an app with storyboard. In one scene I have a tableview with statics cell content. Is possible to change the background selected color to another color out of the def

3条回答
  •  借酒劲吻你
    2021-01-03 01:40

    Here is a solution for those of us using Auto-Layout on X-Code 5+...

    For the static cells, you can supposedly change the background color, but it won't work. Each individual cell, however, will automatically have a Content View inside it in IB. If we change the background of this Content View, it changes the cell background.

    Just something to add to @Leandro Alves' answer, so we don't have to drag extra UIViews onto our project!

提交回复
热议问题