swift - Table view disappears in custom animation -
i wrote following function implement custom animation:
func animateit() { println("here") var mainstoryboard = uistoryboard(name: "main", bundle: nil) var anavigationcontroller2 = mainstoryboard.instantiateviewcontrollerwithidentifier("tnavigationcontroller") as! uinavigationcontroller var ainfo = anavigationcontroller2.viewcontrollers[0] as! ainfovc self.view.addsubview(ainfo.view) self.view.bringsubviewtofront(ainfo.view) self.tabbarcontroller?.tabbar.hidden = false uiview.animatewithduration(2.0, animations: { ainfo.view.frame.origin.x += self.view.frame.width }) { (finished) -> void in ainfo.view.removefromsuperview() } }
the 'ainfovc' has table view, disappears when above animation starts. similar functions work other view controller has not table view.
thanks in advance.
Comments
Post a Comment