ealeksandrov / EAIntroView

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

Page size same as ViewController's storyboard size #183

Closed tomekc closed 6 years ago

tomekc commented 7 years ago

Hello, I tried using EAIntroView as outlet in storyboard. It works, but with "small" issue: when app tuns, scrollable page sizes are the same size as designed on storyboard, not the size of actual device screen. In effect, pages are misaligned (either you see fragment of next page, or other way: pages do not fit on screen).

I resolved it by creating EAIntroView programmatically and adding it to ViewController in runtime, but I am curious if I done something wrong. I tried to defer configuration to viewWillAppear: but it didn't help.

ealeksandrov commented 7 years ago

Thanks for report, I'll check this.

rickyjwhong commented 7 years ago

just want to say I had the same issue. Not sure what's wrong but won't work in 4 inch screen size if connected to IB, but will work if added on programmatically. fantastic pod otherwise.

ealeksandrov commented 7 years ago

Hmm, it is working fine for me:

screen shot 2016-11-05 at 21 01 32

ealeksandrov commented 6 years ago

I managed only to reproduce something like this when no autoresizing or autolayout is applied:

screen shot 2017-11-11 at 12 48 56

But when autolayout is applied, passing pages array on viewDidLoad results in completely correct behaviour:

screen shot 2017-11-11 at 12 55 39