Frage

I need a little help. I am new to programming and I am trying to create an app that shows photos, like they were a magazine.

I can say I am on the half path.

I am trying to create a NSArray with the name of the photos, so I can display them in a UIImageView.

But, how can I send this message to the UIImageView when the information comes from the NSArray?

Actually, let me explain it more. The user will be able to swipe between the photos. The effect is gonna be the curl one, like iBooks.

The problem is that I do not know how to change the UIImageView to display the photos.

Can I create a viewcontroller to each photo and then add the UIViewAnimationTransitionCurlDown to change between them? What's the easiest option?

Well, hope you guys can help me.

Thanks!

War es hilfreich?

Lösung

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!

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top