                                                                    userInfo: nil,
                                                                    repeats: false)
     }
+    
+    func rotated() {
+        let screen = UIScreen.mainScreen().bounds
+        self.volumeWindow.frame = CGRectMake(0.0, -20.0, screen.width, 20.0)
+    }
+}
+
+class UXMVolumeOverlayController:UIViewController {
+    
+    override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
+        return .All
+    }
+    
+    override func shouldAutorotate() -> Bool {
+        return true
+    }
 }
    }
    
    public func hide() {
        
        let screen = UIScreen.mainScreen().bounds
        self.volumeWindow.layer.removeAllAnimations()
        UIWindow.animateWithDuration(0.25, animations: {

        var volumeWindow = UIWindow(frame: CGRectMake(0.0, -20.0, screen.width, 20.0))
        volumeWindow.backgroundColor = self.backgroundColor
        volumeWindow.windowLevel = UIWindowLevelStatusBar + 1
        volumeWindow.rootViewController = UXMVolumeOverlayController()
        return volumeWindow
    }()
    
