回答編集履歴
1
0
test
CHANGED
@@ -3,3 +3,27 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
> let moveData = dataList[sourceIndexPath.row]
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
----
|
10
|
+
|
11
|
+
一応書いておきますが、
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
> let moveData = tableView.cellForRow(at: sourceIndexPath)?.textLabel!.text
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
でUILabel.textはString?型なので、アンラップしないとコンパイルエラーが出ると思われます。
|
20
|
+
|
21
|
+
例えば
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
> let moveData = tableView.cellForRow(at: sourceIndexPath)?.textLabel!.text!
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
のようにアンラップするだけでもコンパイルエラーは消えるのではないかと思います。
|