How can i load images to a UICollectionview asynchronously?
Inside following method?
- (PSTCollectionViewCell *)collectionView:(PSTCollectionVie
This code creates serial queue:
dispatch_queue_t imageLoadQueue = dispatch_queue_create("com.GMM.assamkar", NULL);
therefore each task IN QUEUE is performed in the same thread successive. Therefore your single work thread is sustained by sleep for each task of loading that slow down all process of loading.
Use asynchronous CONCURRENT queue by using something like that:
dispatch_queue_t imageLoadQueue = dispatch_queue_create("com.GMM.assamkar", DISPATCH_QUEUE_CONCURRENT);