From 425e289c78fc3e10a5b51966e8d9cd3854634d1e Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Wed, 4 Sep 2013 17:24:13 +0200 Subject: [PATCH] Fix build --- FSImageViewer/FSImageViewerViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FSImageViewer/FSImageViewerViewController.m b/FSImageViewer/FSImageViewerViewController.m index a3aea4b..a8f81c5 100644 --- a/FSImageViewer/FSImageViewerViewController.m +++ b/FSImageViewer/FSImageViewerViewController.m @@ -121,6 +121,7 @@ - (void)viewWillAppear:(BOOL)animated { [self moveToImageAtIndex:pageIndex animated:NO]; } +#ifdef __IPHONE_7_0 - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; @@ -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) {