ealeksandrov / EAIntroView

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

How to landscape/portrait #184

Closed feimamura closed 7 years ago

feimamura commented 7 years ago

How to set an image to landscape and another image for portrait???

ealeksandrov commented 7 years ago

What image? There are image backgrounds, title views, custom view...

feimamura commented 7 years ago

yes, how to set for bgImage

ealeksandrov commented 7 years ago

I am not sure what are you trying to achieve, but check bgViewContentMode property.

feimamura commented 7 years ago

I'm trying to put an image to the background in case the iPad is landscape and another image if the portrait, and change if case rotate device

ealeksandrov commented 7 years ago

1) If you want to change background image of whole intro, not 1 page - subscribe to orientation notification in your code and when notification arrives - just change intro.bgImage.

2) If you want to change background image of specific page - that's not simply supported by library. You can use page with customView, add UIImageView there manually with keeping reference to it and subscribe to orientation notification. When notification arrives - just change image in your custom image view.

feimamura commented 7 years ago

tks for help!

ealeksandrov commented 7 years ago

👍