Ios UICollectionView未平滑滚动

Ios UICollectionView未平滑滚动,ios,uicollectionview,Ios,Uicollectionview,我正在应用程序中使用UICollectionView显示图像。它的工作,但问题是滚动不顺利。我已经在UITableView中为另一个应用程序(低于iOS 6)使用多个ImageView创建了GridView。这没有这个问题滚动工作非常顺利。为什么UICollectionView会发生这种情况 - (PSUICollectionViewCell *)collectionView:(PSUICollectionView *)collectionView cellForItemAtIndexPath:

我正在应用程序中使用
UICollectionView
显示图像。它的工作,但问题是滚动不顺利。我已经在
UITableView
中为另一个应用程序(低于iOS 6)使用多个ImageView创建了GridView。这没有这个问题滚动工作非常顺利。为什么
UICollectionView
会发生这种情况

- (PSUICollectionViewCell *)collectionView:(PSUICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{

RSCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:CELL_ID forIndexPath:indexPath];

dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
dispatch_async(queue, ^{
    UIImage *image = [UIImage imageNamed:[_images objectAtIndex:indexPath.item]];
    dispatch_sync(dispatch_get_main_queue(), ^{
        cell.imageView.image = image;
    });
});


return cell;
}

也许你可以发布你正在使用的代码…@Zaphod我发布了代码图片有多大?我在iPhone4上的图像200x200像素PNG存在性能问题,但在iPhone4S或更高版本上效果很好。我不确定使用队列是否有助于提高效率。您刚刚尝试过:
cell.imageView.image=[UIImage ImageName:[\u images objectAtIndex:indexath.item]]