質問編集履歴
2
加筆
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,8 +36,8 @@
|
|
36
36
|
よろしくお願いします。
|
37
37
|
|
38
38
|
※追記
|
39
|
-
下記のコードを試したのですが、
|
39
|
+
下記のコードを試したのですが、let hogeCell1 = 〜のところで
|
40
|
-
エラーが出てしまいました。
|
40
|
+
「Thread1: signal SIGABRT」のエラーが出てしまいました。
|
41
41
|
どこが間違っているでしょうか?
|
42
42
|
|
43
43
|
|
1
加筆
title
CHANGED
File without changes
|
body
CHANGED
@@ -35,13 +35,18 @@
|
|
35
35
|
|
36
36
|
よろしくお願いします。
|
37
37
|
|
38
|
+
※追記
|
39
|
+
下記のコードを試したのですが、「Thread1: signal SIGABRT」の
|
40
|
+
エラーが出てしまいました。
|
41
|
+
どこが間違っているでしょうか?
|
38
42
|
|
43
|
+
|
39
44
|
```Swift
|
40
45
|
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
|
41
46
|
|
42
|
-
let hogeCell1 = HogeCell1()
|
47
|
+
let hogeCell1 = tableView.cellForRowAtIndexPath(indexPath) as! HogeCell1()
|
43
|
-
let hogeCell2 = HogeCell2()
|
48
|
+
let hogeCell2 = tableView.cellForRowAtIndexPath(indexPath) as! HogeCell2()
|
44
|
-
let hogeCell3 = HogeCell3()
|
49
|
+
let hogeCell3 = tableView.cellForRowAtIndexPath(indexPath) as! HogeCell3()
|
45
50
|
|
46
51
|
switch indexPath.row{
|
47
52
|
case hogeCell1:
|