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) {