iOS 9 On Yükleme değil ben görüntüleri tarafından doldurulan PFQueryCollectionViewController
, her şey aşağıda iOS 8.x.x ve üzerinde çalışıyor var, ama Xcode 7 Beta kullanmaya iOS 9 uygulamayı çalıştırdığınızda tüm görüntüleri boştur. İşte Görüntüler
PFQueryCollectionViewController
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath object:(PFObject *)object {
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
UIImageView *imageView = (UIImageView*)[cell viewWithTag:1];
if([object objectForKey:@"image"] != NULL) {
[[object objectForKey:@"image"] getDataInBackgroundWithBlock:^(NSData *imageData, NSError *error) {
UIImage *thumbnailImage = [UIImage imageWithData:imageData];
UIImageView *thumbnailImageView = [[UIImageView alloc] initWithImage:thumbnailImage];
imageView.image = thumbnailImageView.image;
}];
}
return cell;
}
ve
- (PFQuery *)queryForCollection {
PFQuery *query = [PFQuery queryWithClassName:@"Class"];
...
return query;
}
neden ImageView thumbnailImageView aracılığıyla thumbnailImage alacaktı? –
Sadece de bu aynı konu koştum (PFFile ile) ve Ayrıştırma GitHub'dan bu güncellemeler izlediği gibi görünüyor: https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/12 –