aschuch / StatefulViewController

Placeholder views based on content, loading, error or empty states

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failureView.tapGestureRecognizer not working in UITableViewController.

Rashesh-Bosamiya opened this issue · comments

failureView.tapGestureRecognizer is not working in UITableViewController, Although working in UICollectionView.
.
So, please let me know the possible solution.

I have wrote following code:

loadingView = LoadingView(frame: self.tableView.frame)
        emptyView = EmptyView(frame: self.tableView.frame)
        let failureView = ErrorView(frame: self.tableView.frame)
        failureView.tapGestureRecognizer.addTarget(self, action: #selector(self.loadReadingData_api))
        errorView = failureView