ios - UIView.animateWithDuration in Swift - iOS7 issue -
i trying clear info in uitableview quick animation, using below code, works fine in ios8.
however when run on ios7 runs block after completion , not first animation code (fade out), animation looks bad, tableview disappears , returns animation.
any thought wrong here? problem in ios7?
uiview.animatewithduration (0.5, animations: { self.tableview.transform = cgaffinetransformmakescale(0.2, 0.2) self.tableview.alpha = 0 }, completion: { (value: bool) in uiview.animatewithduration (0.5, animations: { self.tableview.reloaddata() self.tableview.transform = cgaffinetransformmakescale(1.0, 1.0) self.tableview.alpha = 1 println ("animation done") }) })
try removing uiview.animatewithduration (0.5, animations: { block within completion block , check
ios ios7 swift uiviewanimation
No comments:
Post a Comment