Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
x2on committed Sep 4, 2013
1 parent 1ef7751 commit 425e289
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FSImageViewer/FSImageViewerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ - (void)viewWillAppear:(BOOL)animated {
[self moveToImageAtIndex:pageIndex animated:NO];
}

#ifdef __IPHONE_7_0
- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];
Expand All @@ -130,6 +131,7 @@ - (void)viewDidLayoutSubviews
self.scrollView.contentInset = UIEdgeInsetsMake(self.scrollView.contentInset.top+self.topLayoutGuide.length, 0, self.scrollView.contentInset.bottom+self.bottomLayoutGuide.length, 0);
}
}
#endif

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
Expand Down

0 comments on commit 425e289

Please sign in to comment.