iOS huge image load issue lagging
Solution:
If you are downloading huge amount of images and display in your view then don't load the view in for loop based on the count.
Must use the tableView to load the images.So it will be smoothly loading.Cells are reused so memory issue also solved.
Note:
If you are using if loop inside cell loading then it must be having else loop.Like if you are setting one image in if loop then must use else loop to set the alternative image.Otherwise it will show you wrong images.
If you are downloading huge amount of images and display in your view then don't load the view in for loop based on the count.
Must use the tableView to load the images.So it will be smoothly loading.Cells are reused so memory issue also solved.
Note:
If you are using if loop inside cell loading then it must be having else loop.Like if you are setting one image in if loop then must use else loop to set the alternative image.Otherwise it will show you wrong images.
Comments
Post a Comment