aschuch / StatefulViewController

Placeholder views based on content, loading, error or empty states
MIT License
2.14k stars 149 forks source link

Empty View remove. #46

Closed Rashesh-Bosamiya closed 7 years ago

Rashesh-Bosamiya commented 7 years ago

How can I remove Empty View (No Content) using a button click event?

aschuch commented 7 years ago

The return value of the hasContent method determines which view is going to be shown on screen. If you'd like to remove the empty view, you may return false from hasContent and reload the UI by invoking endLoading().