         print("b")
     }
     
-    open override var shouldAutorotate: Bool {
-        get {
-            return false
-        }
-    }
-    
-    override open var supportedInterfaceOrientations : UIInterfaceOrientationMask {
-        if(isFirstLoadOrientation){
-            return UIInterfaceOrientationMask.portrait
-        }
-        return UIInterfaceOrientationMask.allButUpsideDown
-    }
-    
-    
     
     
     // MARK: Status bar and Navigation bar

                currentPage = page as! FolioReaderPage
                previousPageNumber = currentPage.pageNumber - 1
                currentPageNumber = currentPage.pageNumber
            }
        }
        

    override open func willRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval) {
        ajustRotate(to: toInterfaceOrientation, duration: duration)
    }

    


    
    open func ajustRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval){
        if !FolioReader.sharedInstance.isReaderReady { return }
