Search code examples
iphoneipaduiscrollviewuiimageviewbounds

How to present a "gallery" on the ipad?


I'm building an app for the ipad that uses the youtube api to get the video thumbnails and present them in a gallery (like the native youtube app on the ipad). Basically it's just a bunch of UIImageViews on a UIScrollView. Now the problem is that displaying all the images at once may cause the app to crash due to memory problems, so the idea is to keep only the images which can bee seen, and write back the others to files.

My problem is how to get the exact "visible" area bounds of the content of the UIScrollView.

Any ideas?


Solution

  • Have you taken a look at AQGridView? It's designed for precisely this sort of thing.