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

后端 未结 14 1653
挽巷
挽巷 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:08

    You can try this control. Its is pretty neat. DZNEmptyDataSet

    Or if I were you all I would do is

    • Check to see if your data array is empty
    • If it is empty then add one object called @"No Data" to it
    • Display that string in cell.textLabel.text

    Easy peasy

提交回复
热议问题