diff --git a/SKPhotoBrowser/SKPhotoBrowser.swift b/SKPhotoBrowser/SKPhotoBrowser.swift index 661a050..2f79dd5 100644 --- a/SKPhotoBrowser/SKPhotoBrowser.swift +++ b/SKPhotoBrowser/SKPhotoBrowser.swift @@ -287,13 +287,10 @@ public class SKPhotoBrowser: UIViewController, UIScrollViewDelegate { // this algorithm resizes the current image after device rotation if visiblePages.count > 0 { for page in visiblePages { - let pageIndex = page.tag - pageIndexTagOffset - print(pageIndex) - let page = visiblePages[visiblePages.count-1] page.frame = frameForPageAtIndex(currentPageIndex) page.setMaxMinZoomScalesForCurrentBounds() if page.captionView != nil { - page.captionView.frame = frameForCaptionView(page.captionView, index: pageIndex) + page.captionView.frame = frameForCaptionView(page.captionView, index: currentPageIndex) } } } diff --git a/SKPhotoBrowserExample/SKPhotoBrowserExample/Info.plist b/SKPhotoBrowserExample/SKPhotoBrowserExample/Info.plist index fa8a0ce..3587e98 100644 --- a/SKPhotoBrowserExample/SKPhotoBrowserExample/Info.plist +++ b/SKPhotoBrowserExample/SKPhotoBrowserExample/Info.plist @@ -2,8 +2,6 @@ - UIStatusBarHidden - CFBundleDevelopmentRegion en CFBundleExecutable @@ -32,11 +30,14 @@ armv7 + UIStatusBarHidden + UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortraitUpsideDown UISupportedInterfaceOrientations~ipad