如何在Swift 3中做一个简单的完成块?UIView.animate - Swift 3 - 完成
我想设置self.isOpen = true
在完成的动画:
UIView.animate(withDuration: 0.25, delay: 0.0, options: [], animations: {
self.isOpen = true
self.drawerView?.frame = CGRect(x: 0, y: 0, width: (self.drawerView?.frame.size.width)!, height: (self.drawerView?.frame.size.height)!)
self.contentView?.frame = CGRect(x: 200, y: 0, width: (self.contentView?.frame.size.width)!, height: (self.contentView?.frame.size.height)!)
}, completion: nil)
在传:
这是非常不可能的学习斯威夫特3个大气压,由于互联网上的工作NOTHING :(
我也搜遍了整个文件,甚至提到单词 “动画”,但没有找到任何东西:
对于未来:后自动生成.animate(...)函数,双击蓝色突出显示的((Bool) - > Void)?编辑器占位符和匿名块的结构将准备:) – Muli