@@ -48,20 +48,6 @@ - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout
48
48
- (void )viewWillAppear : (BOOL )animated
49
49
{
50
50
[super viewWillAppear: animated];
51
-
52
- // Scroll to bottom
53
- if (self.isMovingToParentViewController && !self.disableScrollToBottom ) {
54
- CGFloat topInset;
55
- if ([self respondsToSelector: @selector (setEdgesForExtendedLayout: )]) { // iOS7 or later
56
- topInset = ((self.edgesForExtendedLayout && UIRectEdgeTop) && (self.collectionView .contentInset .top == 0 )) ? (20.0 + 44.0 ) : 0.0 ;
57
- } else {
58
- topInset = (self.collectionView .contentInset .top == 0 ) ? (20.0 + 44.0 ) : 0.0 ;
59
- }
60
-
61
- [self .collectionView setContentOffset: CGPointMake (0 , self .collectionView.collectionViewLayout.collectionViewContentSize.height - self .collectionView.frame.size.height + topInset)
62
- animated: NO ];
63
- }
64
-
65
51
// Validation
66
52
if (self.allowsMultipleSelection ) {
67
53
self.navigationItem .rightBarButtonItem .enabled = [self validateNumberOfSelections: self .imagePickerController.selectedAssetURLs.count];
@@ -225,7 +211,7 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cell
225
211
QBAssetsCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier: @" AssetsCell" forIndexPath: indexPath];
226
212
cell.showsOverlayViewWhenSelected = self.allowsMultipleSelection ;
227
213
228
- ALAsset *asset = self.assets [indexPath.row];
214
+ ALAsset *asset = self.assets [self .assets.count - 1 - indexPath.row];
229
215
cell.asset = asset;
230
216
231
217
return cell;
0 commit comments