Skip to content

Commit

Permalink
add paging effect
Browse files Browse the repository at this point in the history
better user experience
  • Loading branch information
wanhmr committed Feb 17, 2017
1 parent a85d11c commit e0e8cb4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions QMUIKit/UIComponents/QMUIImagePreviewView.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ - (void)didInitializedWithFrame:(CGRect)frame {
self.collectionView.showsHorizontalScrollIndicator = NO;
self.collectionView.showsVerticalScrollIndicator = NO;
self.collectionView.scrollsToTop = NO;
self.collectionView.decelerationRate = UIScrollViewDecelerationRateFast;
[self.collectionView registerClass:[QMUIImagePreviewCell class] forCellWithReuseIdentifier:@"cell"];
[self addSubview:self.collectionView];

Expand Down

0 comments on commit e0e8cb4

Please sign in to comment.