I do not know of any third-party classes to handle this for you, but there may be some of them.
The main structure will be a UIScrollView containing a set of views, each of which represents one cell in the grid. You set the scroll view contentSize based on the total number of fragments. Then you create tile views on demand and place them inside the scroll view.
The delegate object of the scroll view will be responsible for controlling the scroll position, removing visible tile views when they become visible, and (optionally) removing tile views that come out of view. This basically works with UITableView: at any given time there are only about six instances of UITableViewCell, they are processed when scrolling up and down the view. (Imagine a train in which someone behind picks up the rails and passes them to someone in front, laying them in front of the train. As far as the train knows, the rails go for miles.)
If you have to post all the views yourself, take the time to explore the CGRect family of methods, including CGRectDivide . They will be useful in drawing up opinions, as well as in calculating what is visible and what is not.
benzado
source share