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

dynamicHeightEnabled has a problem #42

Open
bijy opened this issue May 5, 2016 · 0 comments
Open

dynamicHeightEnabled has a problem #42

bijy opened this issue May 5, 2016 · 0 comments

Comments

@bijy
Copy link

bijy commented May 5, 2016

if i delete delay(1.5) {} , dynamicHeightEnabled has a problem
code:
let longTitle1 = "Don't have to write the code for UITableViewDelegate and UITableViewDataSource protocols"
let longTitle2 = "Support dynamic cell height from ios7"
let titles = ["title 1", "title 2", "title 3", "title 4", "title 5", longTitle1, longTitle2]

    let centerCellmodels = titles.map { [weak self] title -> CellModel in
        let data = CustomCellModel(title: "Section 1: " + title) { _ in
            print("Did select cell with title = \(title)")
            self?.pushChildViewController()
        }
        data.dynamicHeightEnabled = true
        return data
    }

        centerSection
            .append(centerCellmodels)
            .bump(.Left)
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