diff --git a/SCPageViewController.podspec b/SCPageViewController.podspec index 7fc249c..6a08509 100644 --- a/SCPageViewController.podspec +++ b/SCPageViewController.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'SCPageViewController' - s.version = '2.0.13' + s.version = '2.0.14' s.platform = :ios s.ios.deployment_target = '6.0' diff --git a/SCPageViewController/SCPageViewController.m b/SCPageViewController/SCPageViewController.m index a5dd427..f245a6f 100644 --- a/SCPageViewController/SCPageViewController.m +++ b/SCPageViewController/SCPageViewController.m @@ -250,10 +250,10 @@ - (void)reloadData if(oldNumberOfPages >= self.numberOfPages) { NSUInteger index = MAX(0, (NSInteger)self.numberOfPages - 1); [self navigateToPageAtIndex:index animated:NO completion:nil]; - } else { - [self _updateBoundsAndConstraints]; - [self _tilePages]; } + + [self _updateBoundsAndConstraints]; + [self _tilePages]; } - (void)navigateToPageAtIndex:(NSUInteger)pageIndex