provideal / MMGridView

A simple grid view / dashboard component for iOS
324 stars 58 forks source link

Load Images from the Server #16

Closed ajaysharmalike closed 12 years ago

ajaysharmalike commented 12 years ago

Can you please help me with some code, I would like to reload this Grid with using the images downloaded from the server.Similar to Lazy Loading.

renspr commented 12 years ago

Hi,

this has nothing to do with the grid view implementation. All u need is to load and set the images in the gridView:cellAtIndex: delegate method, but instead loading the images from the bundle u can use proper code to instantiate the UIImage with data from a remote URL. You may also create your own cell implementation by overriding MMGridViewCell that can be instantiated with an image URL and handles the loading and caching by its own. The second one is the cleaner way I think.

Regards, René