-1

collectionView reloadData not working. what is wrong in the code? if my question is not enough to understand, i have mentioned detail in this link How to load content fast with images loading in background? Thank you in advance

-(void)setMovieDetail{
    dispatch_async(bgQue, ^{

        //code here..
        [collectionView reloadData];

    });
}
Community
  • 1
  • 1
Santosh
  • 363
  • 2
  • 14

1 Answers1

0

Have you tried something like:

[collectionView performSelectorOnMainThread:@selector(reloadData)
                                 withObject:nil
                              waitUntilDone:false];
Zaphod
  • 6,758
  • 3
  • 40
  • 60
  • Yes, i have tried too. But doesnt work. I even tried using this dispatch_async(dispatch_get_main_queue(), ^{[collectionView reloadData}); but not working. – Santosh Mar 03 '14 at 13:08
  • please have a look on my question in this link : http://stackoverflow.com/questions/22117887/how-to-load-content-fast-with-images-loading-in-background – Santosh Mar 03 '14 at 13:09