             })
             }, loadingView: loadingView)
         tableView.dg_setPullToRefreshFillColor(graph.colorBottom)
-        tableView.dg_setPullToRefreshBackgroundColor(tableView.backgroundColor!)
+        tableView.dg_setPullToRefreshBackgroundColor(self.view.backgroundColor!)
         
         // Transparent navigation bar
         self.navigationController?.navigationBar.barTintColor = UIColor.lightBlue()

        lblAccountPending.attributedText = str1
        
        let loadingView = DGElasticPullToRefreshLoadingViewCircle()
        loadingView.tintColor = UIColor.slateBlue().colorWithAlphaComponent(0.5)
        tableView.dg_addPullToRefreshWithActionHandler({ [weak self] () -> Void in
            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(1.5 * Double(NSEC_PER_SEC))), dispatch_get_main_queue(), {
                self?.tableView.dg_stopLoading()


    private let lblAccountAvailable:UILabel = UILabel()
    
    private let activityIndicator:UIActivityIndicatorView = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.White)

    private let balanceSwitch = AnimatedSegmentSwitch()

