开发者

How to create cover flow with different view controllers?

开发者 https://www.devze.com 2023-03-09 15:09 出处:网络
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 look

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'.


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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消