aschuch / StatefulViewController

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

failureView.tapGestureRecognizer not working in UITableViewController. #45

Closed Rashesh-Bosamiya closed 7 years ago

Rashesh-Bosamiya commented 7 years ago

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