                 viewController.view = UIView()
             }
             self.contents[index] = viewController
+			self.addChildViewController(viewController)
         }
         return self.contents[index]
     }



    override func didRotateFromInterfaceOrientation(fromInterfaceOrientation: UIInterfaceOrientation) {
        self.layoutSubViews()
        self.changeActiveTabIndex(self.activeTabIndex)
    }

    func layoutSubViews() {
        var topLayoutGuide: CGFloat = 0.0

		topLayoutGuide = UIApplication.sharedApplication().statusBarHidden ? 0.0 : 20.0
        if self.navigationController != nil {
            if (!self.navigationController!.navigationBarHidden) {
                topLayoutGuide += self.navigationController!.navigationBar.frame.size.height
