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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

c# - MSDN OneNote Api: Navigate to never before opened page without opening a OneNote Application Window -