Pinterest Gridview implementation on iOS

Posted by Amal on Stack Overflow See other posts from Stack Overflow or by Amal
Published on 2012-02-13T11:57:35Z Indexed on 2012/04/05 5:30 UTC
Read the original article Hit count: 278

I want to implement a grid view like the one in Pinterest

I thought about implementing as 3 table views. But I was not able to scroll them together well. When I implemented the scrollViewDidScroll and set the contentOffset for the table views other the scrollView , the scrolling became slow and unusable.

Another implementation I did was of was having a set of images to load and calling the viewDraw function in scrollViewDidScroll. THe ViewDraw function just draws the necessary images and removes the rest of the images from the memory which were already drawn but wont be visible . this too makes the ScrollView Scrolling slow. And another issue with it is that there are white(background color) patches before the images are drawn.

What should be the best way to implement this grid view ?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios