pstcollectionview

UICollectionView bad acces on -> UICollectionViewData _setLayoutAttributes:atGlobalIndex:

半城伤御伤魂 提交于 2019-12-23 11:56:40
问题 I use an UICollectionView to display a lot of images with a batch of 32. Every time the i reach the end of the collection view i load an other batch of 32 images and resize the collectionView contentsize.width to accepte the new items. The loading is made by calling a webservice with AFNetworking. When i scroll very fast from the start to the end and to the end to the start i receive a EXC_BAD_ACCESS. It also happend when a reach the end of the CollectionView. It's like it tries to load some

Asynchronous image loading is not working?

被刻印的时光 ゝ 提交于 2019-12-12 00:39:39
问题 Hi iam using PST Collectionview similar UIcollectionview .I want to load images from my document directory to Collection view.First tried synchronous way but it is too slow..So one know How can i load images in asynchronously to collectionview. in my viewdidload i added following code so it will download the images to my document directory dispatch_queue_t imageLoadQueue = dispatch_queue_create("com.aaa.nkp",NULL); dispatch_async(imageLoadQueue, ^{ usleep(1000000); docPath =