You should look into UIPageViewController. Essentially, you would have a main view controller that contains the array of photos. This would have a child view controller that is a page view controller. The page view controller would refer back to the main view controller for view controllers to display, and the main view controller would provide it with view controllers that contain image views initialized however the main view controller wants it. Take a look at Apple's tutorial, as well as this tutorial, for more information.
Hope this helps!