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

cellForItemAt not called! #12

Closed
arsanjani opened this issue Feb 23, 2017 · 1 comment
Closed

cellForItemAt not called! #12

arsanjani opened this issue Feb 23, 2017 · 1 comment

Comments

@arsanjani
Copy link

arsanjani commented Feb 23, 2017

Hi there
i wanna to implement fspagerview in tableHeaderView of uitableview. after pagerView.reloadData() cellForItemAt... not called but numberOfItems fired !!

`

    let nib = UINib(nibName: "BannerViewNew", bundle: nil)
    self.newsListTableView.register(nib, forHeaderFooterViewReuseIdentifier: "BannerViewNew")
    let cell = self.newsListTableView.dequeueReusableHeaderFooterView(withIdentifier: "BannerViewNew") as! BannerViewNewCell
    cell.frame = CGRect(x: 0.0, y: 0.0, width: self.newsListTableView.frame.width, height: 250.0)
    cell.pagerView.frame = cell.frame
    cell.pagerView.delegate = self
    cell.pagerView.dataSource = self
    cell.pageControl.numberOfPages = bannerList?.count ?? 0
    cell.pagerView.reloadData()
    self.newsListTableView.tableHeaderView = cell`
@WenchaoD
Copy link
Owner

Fixed in 0.2.1. Please try again. Thanks.

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

2 participants