UISearchBar显示了CancelButton动画完成

时间:2016-08-15 19:41:07

标签: swift animation uisearchbar

我需要知道在调用

后UISearchBar的取消按钮何时完成动画
searchBar.setShowsCancelButton(false, animated: true)

我试过这个

UIView.animateWithDuration(3, animations: {
    self.searchBarView.searchBar.showsCancelButton = false
         }, completion: {finished in
         print(finished)
})

但完成块立即被触发,任何解决方案都将受到赞赏

0 个答案:

没有答案