有些人可以帮助我在swift中使用transitionWithView的语法.在objective-c中我会像这样使用它:
[UIView transitionWithView:[ self view ] duration:0.325 options:UIViewAnimationOptionCurveEaseOut animations:
^{
// do the transition
}
completion:
^( BOOL finished ){
// cleanup after the transition
}];
Run Code Online (Sandbox Code Playgroud)
但是我无法让完成处理程序工作.谢谢