From eb8f5756fc7454c2fe5fe949ca3ed0a291f8d967 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 28 Sep 2018 17:34:02 +0300 Subject: [PATCH] Fixes #44 - reloadData not updating the content bounds. --- SCPageViewController.podspec | 2 +- SCPageViewController/SCPageViewController.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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