ealeksandrov / EAIntroView

Highly customizable drop-in solution for introduction views.
MIT License
3.76k stars 501 forks source link

Pages are not showed. #219

Closed erdem-inan closed 6 years ago

erdem-inan commented 6 years ago

Hello !

I am trying to showing the EAIntroView into a container view. this containerView is place on the top of the view and has the height of the view divided by 3.

My problem is that when a set do this when instantiating the EAIntroView

let frame = CGRect(x: 0, y: 0, width: view.frame.width, height: view.frame.height/3)
let introView = EAIntroView(frame: frame, andPages: pages)!

the pages are not showed.

When I got check in the debug view hierarchy mode, i see that the pages are not event instantiate.

but when I do this:

let frame = CGRect(x: 0, y: 0, width: view.frame.width, height: view.frame.height)
let introView = EAIntroView(frame: frame, andPages: pages)!

I see in the debug view hierarchy mode that the page are instantiate but the scroll view is too big so my content is not really visible (my content has constraint that place it in the center of the page), and can be scroll in both way which is really not good.

For the information I have 3 page inside.

Could you help me with this ? thanks

erdem-inan commented 6 years ago

Ok I managed to make it work,

I setup the page in the viewWillAppear and it worked.

So I close the issue