mikaoj/BSImagePicker — pull request #11 by lifcio (2014-06-02 17:34:44+00:00)
Title: Filtered out videos in - (void)setupAlbums

In method "- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section" only ALAssetTypePhoto items are counted, e.g. if there are 276 items, 6 of which are videos, method will return 270.

Later, in "- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath", videos are not skipped, which means we will have always last 6 (== number of videos in album) photos missing.

Fix:
Add
"ALAssetsFilter *onlyPhotosFilter = [ALAssetsFilter allPhotos];
[group setAssetsFilter:onlyPhotosFilter];"
in "- (void)setupAlbums". After that, when enumerating assets in group, you will enumerate only photos, thus properly showing all of them.