Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
fix not scroll to bottom when the navigationBar.isTranslucent is false
Browse files Browse the repository at this point in the history
  • Loading branch information
StormXX committed Nov 22, 2016
1 parent c7744b2 commit f39396d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github "onevcat/Kingfisher" "3.0.1"
github "teambition/PhotoBrowser" "0.5.0"
github "onevcat/Kingfisher" "3.2.1"
github "teambition/PhotoBrowser" "0.5.5"
Binary file not shown.
6 changes: 3 additions & 3 deletions PhotoPicker/AssetsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ class AssetsViewController: UICollectionViewController {

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

navigationItem.title = assetCollection.localizedTitle
navigationItem.prompt = photoPickerController.prompt

collectionView?.allowsMultipleSelection = photoPickerController.allowMultipleSelection

collectionView?.reloadData()

if assetsFetchResults.count > 0 && isMovingToParentViewController {
let indexPath = IndexPath(item: assetsFetchResults.count - 1, section: 0)
collectionView?.layoutIfNeeded()
collectionView?.scrollToItem(at: indexPath, at: .top, animated: false)
}
}
Expand Down

0 comments on commit f39396d

Please sign in to comment.