rushisangani / RSSelectionMenu

An elegant selection list or dropdown menu for iOS with single or multiple selections.
MIT License
351 stars 91 forks source link

Empty tableView message #60

Closed aryan-smartsense closed 5 years ago

aryan-smartsense commented 5 years ago

I would like to show a UILabel with a message when the datasource is empty to handle empty tableView. How is it possible here?

rushisangani commented 5 years ago

Try this one. If it would be ok.

selectionMenu.addFirstRowAs(rowType: .Custom(value: "No data found"), showSelected: false)
 { (text, selected) in
 }       
screen shot 2018-11-16 at 9 50 38 pm
rushisangani commented 5 years ago

@aryan-smartsense did this work for you?

rushisangani commented 5 years ago

@aryan-smartsense update to the latest version 6.0 and you can set empty data message.

menu.showEmptyDataLabel()
//or 
menu.showEmptyDataLabel(text: "No players found")