How to show a message when collection view is empty

前端 未结 5 1267
無奈伤痛
無奈伤痛 2021-02-07 05:54

I`m trying to show a message only when my collection view is empty. Well, I try set return 1 when my if is true but when I have this, it only show one item in my collection view

5条回答
  •  无人及你
    2021-02-07 06:53

    Use backgroundView of your Collection View to display the no results message.

提交回复
热议问题