質問編集履歴

2

ストーリーボードのスクリーンショット追加

2016/05/20 18:15

投稿

hondy123456
hondy123456

スコア16

test CHANGED
File without changes
test CHANGED
@@ -181,3 +181,9 @@
181
181
 
182
182
 
183
183
  ![info.plist](9943e92ae84f25d4346dbac787a0877c.png)
184
+
185
+
186
+
187
+ ストーリーボードのCellの部分のスクリーンショットです。
188
+
189
+ ![イメージ説明](4b72fc54166b687c4344349f5e40c0d6.png)

1

現時点での考察、エラー発生箇所へのコメント追加

2016/05/20 18:15

投稿

hondy123456
hondy123456

スコア16

test CHANGED
File without changes
test CHANGED
@@ -5,6 +5,12 @@
5
5
  本に沿ってコーディングしているはずなのですが上記のエラーが発生します。
6
6
 
7
7
  どのような問題があるのでしょうか。
8
+
9
+
10
+
11
+ 現時点ではコメントで「エラー発生箇所」と記述している行の
12
+
13
+ self.itemがなぜかnullになっていることが原因なのかな?と考えています。
8
14
 
9
15
 
10
16
 
@@ -128,7 +134,7 @@
128
134
 
129
135
  case "link":self.item?.link = currentString
130
136
 
131
- case "item": self.items.append(self.item!)
137
+ case "item": self.items.append(self.item!) // エラー発生箇所
132
138
 
133
139
  default: break
134
140