【发布时间】:2014-06-25 16:03:01
【问题描述】:
能否帮助我快速了解 transitionWithView 的语法。在objective-c中我会这样使用它:
[UIView transitionWithView:[ self view ] duration:0.325 options:UIViewAnimationOptionCurveEaseOut animations:
^{
// do the transition
}
completion:
^( BOOL finished ){
// cleanup after the transition
}];
但是我无法让完成处理程序工作。 谢谢
【问题讨论】:
-
我建议阅读更多关于 Swift 中的闭包的信息:developer.apple.com/library/prerelease/ios/documentation/swift/…