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

Troubles when add sections in UITableView #24

Closed
IgorBulyga opened this issue May 26, 2016 · 7 comments
Closed

Troubles when add sections in UITableView #24

IgorBulyga opened this issue May 26, 2016 · 7 comments

Comments

@IgorBulyga
Copy link

I have downloaded example project and just added sections in UITableView with simple title and when try scrolling section views freeze where they appear.

Any suggestions?

simulator screen shot 26 2016 20 50 49
simulator screen shot 26 2016 20 50 54

@txaiwieser
Copy link

Having the same problem here, any updates? did you managed to fixed?

@maxep
Copy link
Owner

maxep commented Jun 1, 2016

I guess its because I treat UITableView as any UIScrollView. UITableView might need a specific category and the use of tableHeaderView property to work properly.

@maxep maxep closed this as completed in e4bbfae Jun 1, 2016
@maxep
Copy link
Owner

maxep commented Jun 1, 2016

I've found a solution, could you please try it and reopen the issue if needed?

@IgorBulyga
Copy link
Author

Now slide section is good, but if you set a minimum height for header that they will slide over header
simulator screen shot 1 2016 19 57 16

@IgorBulyga
Copy link
Author

@maxep Thanks, all good!

@txaiwieser
Copy link

Awesome! Going to test as soon as i can! thanks

@kid9591
Copy link

kid9591 commented Apr 25, 2020

@maxep @IgorBulyga
I still got this problem with version 1.1.0. Could you help me, please?
I use Tableview inside UIViewController. And I configure the section header as follows:

func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
            return 40
    }
    
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
        let label = UILabel(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 40))
        label.backgroundColor = .yellow
        label.text = "\(section)"
        return label
}

Screen Shot 2020-04-25 at 16 26 05

Screen Shot 2020-04-25 at 16 28 29

Screen Shot 2020-04-25 at 16 28 35

Screen Shot 2020-04-25 at 16 38 25

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

4 participants