gmgridview

Images in Imageviews are swapping after scrolling GMGridView up & down in iphone

天涯浪子 提交于 2019-12-08 11:50:11
问题 I have added UIImageView in GMGridView as I want to display the images in grid. After adding imageview in grid all works perfectly. I want to show different image in first row & first column. So I set that image after compairing with index. But when I scroll up & down , it changes the image from first column to 2nd or 3rd column. Also same image is shown in the 6th or 7th row. What going wrong in this? Here is my code - (GMGridViewCell *)GMGridView:(GMGridView *)gridView cellForItemAtIndex: