iPhone UITableView image background when table is empty

前端 未结 3 417
长情又很酷
长情又很酷 2021-02-04 18:17

I would like to show an image background when my UITableView is empty. Currently I tried adding a UIImageView to my view controller that contains a table, but XCode doesn\'t all

3条回答
  •  滥情空心
    2021-02-04 18:49

    UITableView has a backgroundView property. Set this property to the UIImageView containing your background image.

提交回复
热议问题