Skip to content

Commit

Permalink
Workaround for initial galery index seting problem on iPad. (Issue ro…
Browse files Browse the repository at this point in the history
…botmedia#11) in original RMGallery repo.
  • Loading branch information
xjki committed Aug 31, 2016
1 parent f358acf commit 4abc73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RMGallery/RMGalleryViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ - (void)viewDidLoad
[self.view addGestureRecognizer:_tapGestureRecognizer];
}

- (void)viewWillAppear:(BOOL)animated
- (void)viewDidLayoutSubviews
{
[super viewWillAppear:animated];
[super viewDidLayoutSubviews];
if (!_initialGalleryIndexSet)
{
// In case the gallery index was set before the view was loaded
Expand Down

0 comments on commit 4abc73f

Please sign in to comment.