Can anyone tell me, how to make shadow, using UIPageViewController, around of my background image instead of the view bounds?
In other words, I have an “irregular background image” which bounds looks like a wave. And when I go from page to page, shadow must be around “waves of backgrounds image” instead of pages rectangle.
Thanks.
You can use the QuartzCore.framework.
Every UIView has a CALayer which can help u on that
Then you can do something like:
For your case:
You can do something like: