UITableView Change 'No Results' Message

后端 未结 1 530
不思量自难忘°
不思量自难忘° 2021-01-14 18:35

Given a UITableViewController with a UISearchBar, how does one change the \'No Results\' text that appears in the table view (after any characters are enter

1条回答
  •  隐瞒了意图╮
    2021-01-14 19:17

    From Apple Support Forum: There isn't currently a supported way to change the text (good chance to file a bug!), but you can prevent it from showing up by returning a single row with a blank cell from your data source when you're still waiting for the user to press the search button. As long as there's a cell we won't show the no results text.

    0 讨论(0)
提交回复
热议问题