If no Table View results, display “No Results” on screen

后端 未结 14 1667
挽巷
挽巷 2020-11-30 17:25

I have a tableview, where sometimes there might not be any results to list, so I would like to put something up that says \"no results\" if the

14条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 18:04

    If you want to do this without any code, try this!

    Click on your tableView.

    tableView Screenshot

    Change the style from "plain" to "grouped".

    Table View properties screenshot-2

    Now when you use ....

    tableView.backgroundView = INSERT YOUR LABEL OR VIEW

    It will not show the separators!

提交回复
热议问题