【发布时间】:2015-05-28 18:02:34
【问题描述】:
我正在尝试关注this tutorial,但用 Swift 而不是 Objective-C 编写。
我已将Cancel and Save 按钮连接到Exit 按钮
AddToDoItemViewController 作为 unwind segue 在ToDoListTableViewController 中发挥作用。
@IBAction func unwindToList(segue : UIStoryboardSegue){
println("unwindToList")
}
当我点击Cancel and Save 时,设备或模拟器功能上的按钮不会被调用,也不会触发退出。我做错了什么?
项目下载:http://www.filedropper.com/test_16 Mac 操作系统:10.10.3 XCode 6.3.2 命令行工具:6.3 iOS 设备:8.3 模拟器:iPhone 6 (iOS 8.3)
我也尝试过使用 Objective-C 并遇到同样的问题。
【问题讨论】:
-
源视图控制器中是否有动作?
标签: ios objective-c iphone xcode swift