subinspathilettu / SJSegmentedViewController

MIT License
334 stars 126 forks source link

how we can set dynamic header? like first get the height of header after api load and then set height of header accroding to that view size #135

Open forTJ555 opened 4 years ago

eslamsalim commented 4 years ago

please if you have solve it , tell my how because i have the same issue

ZAHID1989 commented 4 years ago

please if you have solve it , tell my how because i have the same issue

I think that I have found a solution to this problem. At least in my case, if I round the height before I set it, it can actually scroll normally.

let customHeaderHeight = 316.3 headerViewHeight = round(customHeaderHeight)

namtranx07 commented 3 years ago

anyone have solution?

ksojitra747 commented 2 years ago

You can put your own delegate and pass value according to your API data and you can change runtime height that you received from your delegate to your header view height.