             naviCtl.setNavigationBarHidden(false, animated: animated)
         
             let navBar = naviCtl.navigationBar
+            navBar.backgroundColor = navBarBarTintColor
             navBar.tintColor = navBarTintColor
             navBar.barTintColor = navBarBarTintColor
             navBar.shadowImage = nil

            isVCBasedStatusBarAppearance = true // default
        }
        
        hidesBottomBarWhenPushed = true
        hasBelongedToViewController = false
        photoCount = -1
        previousLayoutBounds = CGRectZero
        currentPageIndex = 0
        previousPageIndex = Int.max
        displayActionButton = true
        displayNavArrows = false
        zoomPhotosToFill = true
        performingLayout = false // Reset on view did appear
        rotating = false
        viewIsActive = false
        enableGrid = true
        startOnGrid = false
        enableSwipeToDismiss = true
        delayToHideElements = 5.0
        currentGridContentOffset = CGPointMake(0, CGFloat.max)
        didSavePreviousStateOfNavBar = false
        automaticallyAdjustsScrollViewInsets = false
        
        if let navi = self.navigationController {
            navi.view.backgroundColor = UIColor.whiteColor()
        }
        
        // Listen for MWPhoto falsetifications
        NSNotificationCenter.defaultCenter().addObserver(

	private var visiblePages = Set<ZoomingScrollView>()
    private var recycledPages = Set<ZoomingScrollView>()
	private var currentPageIndex = 0
    private var previousPageIndex = Int.max
    private var previousLayoutBounds = CGRectZero
	private var pageIndexBeforeRotation = 0
	
	// Navigation & controls
