             size: CGSizeMake(DARK_VIEW_WIDTH,
                 DARK_VIEW_HEIGHT))
         )
+        
         self.darkView.center = center
         self.darkView.layer.cornerRadius = 10.0
         self.darkView.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.7)

                self.activityIndicatorView.center = CGPointMake(self.darkView.frame.size.width / 2.0, self.activityIndicatorView.frame.size.height / 2.0)
            }
        }
    }
    
    func hide()
    {
        self.removeFromSuperview()
    }
}

    
    func show()
    {
        self.frame = CGRect(origin: CGPointZero, size: UIScreen.mainScreen().bounds.size)
        let center = CGPointMake(UIScreen.mainScreen().bounds.size.width/2, UIScreen.mainScreen().bounds.size.height/2)
        self.darkView.center = center
        
        //We get the window
        let keyWindow:UIWindow = UIApplication.sharedApplication().keyWindow
        
