データソースと次のコード行から行を削除しようとしています。
if let tv = tableView {次のエラーが発生します。
条件付きバインディングの初期化子には、UITableViewではなく、オプションタイプが必要です
ここに完全なコードがあります:
// Override to support editing the table view.
func tableView(tableView: UITableView, commitEditingStyle editingStyle:UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
    if editingStyle == .Delete {
        // Delete the row from the data source
    if let tv = tableView {
            myData.removeAtIndex(indexPath.row)
            tv.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Fade)
次の修正方法を教えてください。
 if let tv = tableView {variable with getter/setter cannot have an initial value、単にこの答えたala、初期化後に残っ{}ブロックを除去することによって解決された:stackoverflow.com/a/36002958/4544328
                
tableViewオプションの値ではなく、それがnilであるかどうかをチェックする必要はありません。あなたは直接削除することを私は平均、それを使用することができますのでif let、ちょうど使用tableView機能で