Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find type 'PaginatedTableView' in scope #18

Open
AnatoliyOstapenko opened this issue Jan 10, 2022 · 0 comments
Open

Cannot find type 'PaginatedTableView' in scope #18

AnatoliyOstapenko opened this issue Jan 10, 2022 · 0 comments

Comments

@AnatoliyOstapenko
Copy link

AnatoliyOstapenko commented Jan 10, 2022

Hi Salmaan,
I did what you recommended in readme file, but I have following error:

Cannot find type 'PaginatedTableView' in scope

  @IBOutlet weak var newsSearchBar: UISearchBar!
  @IBOutlet weak var newsTableView: PaginatedTableView!

    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        newsTableView.paginatedDataSource = self
        newsTableView.paginatedDelegate = self
//        newsTableView.dataSource = self
//        newsTableView.delegate = self
        newsSearchBar.delegate = self


        navigationController?.navigationBar.tintColor = .white // Back botton color is changed to white
        
        // registration nib
        newsTableView.register(UINib(nibName: "NewsAPITableViewCell", bundle: nil), forCellReuseIdentifier: "Cell")
        
        updateUI()
        
        // add UIRefreshControl to TableView
        newsTableView.refreshControl = newsRefreshControl
        newsTableView.loadData(refresh: true)
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant