Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 974d235

Browse files
wanghenghengEase
authored and
Ease
committed
QBImagePickerController 相片倒序排列
1 parent 084d152 commit 974d235

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

‎Coding_iOS/Coding_iOS-Info.plist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>3.3.201510071800</string>
39+
<string>3.3.2015101515430</string>
4040
<key>LSApplicationQueriesSchemes</key>
4141
<array>
4242
<string>wechat</string>

‎Coding_iOS/Vendor/QBImagePickerController/QBAssetsCollectionViewController.m‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,6 @@ - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout
4848
- (void)viewWillAppear:(BOOL)animated
4949
{
5050
[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-
6551
// Validation
6652
if (self.allowsMultipleSelection) {
6753
self.navigationItem.rightBarButtonItem.enabled = [self validateNumberOfSelections:self.imagePickerController.selectedAssetURLs.count];
@@ -225,7 +211,7 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cell
225211
QBAssetsCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"AssetsCell" forIndexPath:indexPath];
226212
cell.showsOverlayViewWhenSelected = self.allowsMultipleSelection;
227213

228-
ALAsset *asset = self.assets[indexPath.row];
214+
ALAsset *asset = self.assets[self.assets.count -1 - indexPath.row];
229215
cell.asset = asset;
230216

231217
return cell;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /