         self.setCurrentIndex(self.indexSelected, animated: false)
     }
     
-    public override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-        // Dispose of any resources that can be recreated.
-    }
-    
     public override func viewWillLayoutSubviews() {
         super.viewWillLayoutSubviews()
         self.navigationBarView.frame = CGRectMake(0, 0, self.SCREENSIZE.width, 44)

        }
        self.indexSelected = index
        // Get the right position and update it
        var xOffset = CGFloat(index) * self.SCREENSIZE.width
        self.scrollView.setContentOffset(CGPointMake(xOffset, self.scrollView.contentOffset.y), animated: animated)
    }
    

            let originX       = (self.SCREENSIZE.width/2.0 - vSize.width/2.0) + CGFloat(i * 100)
            v.frame           = CGRectMake(originX, 8, vSize.width, vSize.height)
            v.tag             = i
            let tap           = UITapGestureRecognizer(target: self, action: "tapOnHeader:")
            v.addGestureRecognizer(tap)
            v.userInteractionEnabled = true
            self.navigationBarView.addSubview(v)
