Ka-rocks
Ka-rocks

Reputation: 774

How to create cover flow with different view controllers?

I want to show view controllers's view as images in tiles. But how to get the images of all view controllers before loading those view controllers. Suggest me some solution. I was looking through the link Flowcover

EDIT

But My views have graphs, which is drawn from a dynamic content(fetched from web service). How could I take a screenshot without loading the view? If not, can u suggest me some other solution to display in 'tiles'.

Upvotes: 0

Views: 699

Answers (3)

user865155
user865155

Reputation:

You can load your controls or graphs in a view which is already hidden. then take a screen screen shot in program and use that image for texture drawing.

Upvotes: 0

Sam
Sam

Reputation: 3659

The way I did this was to write the cover flow in OpenGL and build textures using the viewController views. When each view controller comes to the front, you can draw its view over the top of your OpenGL scene so that the user can interact with it. When the user moves the coverflow again, this UIView is hidden and they will once again be looking at a texture 'snapshot' of the viewController.

Upvotes: 0

Mitesh Khatri
Mitesh Khatri

Reputation: 3955

Use view controller as a image is not possible but you can take diagrammatically screen shot of ur view and use it in cover flow. i also used this trick and work as a charm.

Thx

Upvotes: 2

Related Questions