     }()
 
     private var pageControl: UIPageControl  = {
-        let bounds = UIScreen.mainScreen().bounds
+        let bounds = UIScreen.mainScreen().liveBounds()
         let frame = CGRectMake(bounds.size.width / 4,
             bounds.size.height / 1.5,
             bounds.size.width / 2,

    }

    private func invalidateLayout() {
        let bounds = UIScreen.mainScreen().bounds
        var index = 0
        for obj in self.view.subviews {
            var view = obj as! UIView
            var frame = view.frame
            frame.size.width = bounds.size.width
            frame.size.height = bounds.size.height

            view.frame = frame

            ++index
        }
    }
}


        return pageControl
    }()

    public var currentPage: Int = 0 {
        didSet { self.scrollToPageWithIndex(currentPage) }
    }

    convenience init(title :String) {
        self.init()
