質問するログイン新規登録

質問編集履歴

2

加筆

2015/10/09 08:54

投稿

Kesth
Kesth

スコア83

title CHANGED
File without changes
body CHANGED
@@ -36,8 +36,8 @@
36
36
  よろしくお願いします。
37
37
 
38
38
  ※追記
39
- 下記のコードを試したのですが、「Thread1: signal SIGABRT」
39
+ 下記のコードを試したのですが、let hogeCell1 = 〜ところで
40
- エラーが出てしまいました。
40
+ 「Thread1: signal SIGABRT」のエラーが出てしまいました。
41
41
  どこが間違っているでしょうか?
42
42
 
43
43
 

1

加筆

2015/10/09 08:54

投稿

Kesth
Kesth

スコア83

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: