gringoireDM / LNZTreeView

A swift TreeView
MIT License
236 stars 47 forks source link

Set rows height #9

Closed rursache closed 6 years ago

rursache commented 6 years ago

how can i set rows height?

gringoireDM commented 6 years ago

Hi, currently you can't.

rursache commented 6 years ago

adding the cell height tableview delegate in your library caused crashes on the first 2 rows each time i expanded them :(

however, i managed to successfully apply a walkaround: i set my cell in a XIB, where i added a height-constraited UIView, as a container of all my cell elements.

gringoireDM commented 6 years ago

Hi, It's not a safe way of doing it. It should be done either by creating a new var (and change the equivalent var of the underlying tableview) or by adding a delegate method that proxies the UITableview delegate method.

rursache commented 6 years ago

i tried to proxy it but the result was the one above: always crashing on cell 1 and 2 on expand. i can provide some logs tomorrow morning.

thanks for your time and help

gringoireDM commented 6 years ago

Hi, I added this feature in version 1.1.1 now published. pod update.

Sorry for taking so long.