【发布时间】:2016-04-01 13:36:28
【问题描述】:
我使用 Swift,并且正在开发一个带有“相机”按钮的应用程序。如果我单击此按钮,iPhone 相机将打开。但是,当我转到“使用照片”时,该应用程序不起作用。
如何将拍摄的图像保存在一个数组中,以便它们在UITableView 中列出?
func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
if editingStyle == UITableViewCellEditingStyle.Delete{
imageArray.removeAtIndex(indexPath.row)
self.mytableview.reloadData()
}
}
【问题讨论】:
标签: swift core-data camera swift2