|
|
@@ -49,7 +49,7 @@
|
|
|
|
|
|
//[self.photoPreviewCollectionV reloadData];
|
|
|
|
|
|
- if (_currentIndex) {
|
|
|
+ if (_currentIndex >= 0) {
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
self->_canSetCurrentIndex = YES;
|
|
|
[self.photoPreviewCollectionV setContentOffset:CGPointMake(SCREEN_W * self.currentIndex, 0) animated:NO];
|
|
|
@@ -248,7 +248,8 @@
|
|
|
offSetWidth = offSetWidth + (SCREEN_W * 0.5);
|
|
|
|
|
|
NSInteger currentIndex = offSetWidth / (SCREEN_W + 20);
|
|
|
- if (currentIndex < _assets.count && _currentIndex != currentIndex && _canSetCurrentIndex) {
|
|
|
+ if (currentIndex < _assets.count && _currentIndex != currentIndex && _canSetCurrentIndex)
|
|
|
+ {
|
|
|
_currentIndex = currentIndex;
|
|
|
[self refreshNaviBarAndBottomBarState];
|
|
|
}
|