我无法弄清楚如何正确使用 modalTransitionStyle = UIModalTransitionStyleCrossDissolve 我希望能够在第二个视图控制器和第一个视图控制器之间运行CrossDissolve动画。这是我的代码......
@IBAction func saveButton(sender: AnyObject) {
//create sound
var sound = Sound()
sound.name = self.soundObjectName.text
//add sound to tableView
self.previousViewController.sounds.append(sound)
//dismiss viewController
self.previousViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve
self.dismissViewControllerAnimated(false, completion: nil)
}