Skip to content

Commit

Permalink
Fix crash on iOS7
Browse files Browse the repository at this point in the history
  • Loading branch information
maxep committed May 20, 2015
1 parent 40fa534 commit 4cf5be0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Example/MXSegmentedPager/MXParallaxViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ - (void)viewWillLayoutSubviews {
.origin = CGPointZero,
.size = self.view.frame.size
};
[super viewWillLayoutSubviews];
}

#pragma -mark private methods
Expand Down
1 change: 1 addition & 0 deletions Example/MXSegmentedPager/MXSimpleViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ - (void)viewWillLayoutSubviews {
.size.width = self.view.frame.size.width,
.size.height = self.view.frame.size.height - 20.f
};
[super viewWillLayoutSubviews];
}

#pragma -mark Properties
Expand Down
1 change: 1 addition & 0 deletions Pod/Classes/MXSegmentedPager.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ @implementation MXSegmentedPager
- (void)layoutSubviews {
[super layoutSubviews];
[self reloadData];
[self layoutIfNeeded];
}

- (void)reloadData {
Expand Down

0 comments on commit 4cf5be0

Please sign in to comment.