maxep / MXParallaxHeader

Simple parallax header for UIScrollView
MIT License
1.73k stars 251 forks source link

How can I set header view height & minimum height with programmatically #109

Closed hkim777 closed 4 years ago

hkim777 commented 5 years ago

Hi..

I want to use MXParallaxHeader with using Controller.


        self.headerViewController = DvChannelMainViewHeaderController()

        headerViewController?.parallaxHeader?.height = 300
        headerViewController?.parallaxHeader?.minimumHeight = 250

        self.childViewController = DvChannelMainViewContentsViewController()

this is not work properly..

I just tried with

    parallaxHeader?.height = 300
    parallaxHeader?.minimumHeight = 100

or

    self.scrollView.parallaxHeader.height = 300
    self.scrollView.parallaxHeader.minimumHeight = 250

but not work also.

how can I setting height and minimum height with programmatically?

Thx

Zeeshan0075 commented 4 years ago

I'm also facing this problem their's no way out for this problem... Unfortunately !!!

New-tap commented 4 years ago

I put it in viewDidAppear and it worked

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.