Merge branch 'release/0.4.0' of github.com:nohana/NohanaImagePicker into feature/fix-photo-detail-screen

This commit is contained in:
haranicle 2016-06-28 19:23:40 +09:00
commit 8cc6c445a8
4 changed files with 8 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -67,7 +67,7 @@
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "84.png",
"filename" : "167.png",
"scale" : "2x"
}
],

View File

@ -36,12 +36,14 @@ class MomentViewController: AssetListViewController, ActivityIndicatable {
guard isFirstAppearance else {
return
}
let lastSection = self.momentAlbumList.count - 1
guard lastSection >= 0 else {
return
dispatch_async(dispatch_get_main_queue()) {
let lastSection = self.momentAlbumList.count - 1
guard lastSection >= 0 else {
return
}
let indexPath = NSIndexPath(forItem: self.momentAlbumList[lastSection].count - 1, inSection: lastSection)
self.scrollCollectionView(to: indexPath)
}
let indexPath = NSIndexPath(forItem: momentAlbumList[lastSection].count - 1, inSection: lastSection)
scrollCollectionView(to: indexPath)
isFirstAppearance = false
}